Field | Type | Description |
---|---|---|
statusCode | integer | An HTTP error code indicating the specific error type. |
error | string | A brief HTTP error code title describing the error. |
message | string | A detailed description of the specific error. |
Error Code | HTTP Error | Message | Description |
---|---|---|---|
400100 | 400 | Invalid Data | The input data does not match the required pattern or format. |
400200 | 400 | Not Enough | Insufficient data provided to complete the requested task. |
Field | Type | Description |
---|---|---|
status | string | A unique custom error code to identify the error. |
message | string | A brief, human-readable description of the error in English. |
data | object | Contains additional details about the error, such as Thai translations or context-specific fields. |
th_message | string | (Optional) A user-friendly error message in Thai, providing a localized explanation. |
Other fields | any | Any other relevant data about the error (e.g., counts, input parameters). |
HTTP Method | Endpoint | Custom Error Codes |
---|---|---|
POST | /trips/v1/custom/preset | 400100 , 400200 |