This section outlines the common error codes and resolutions you may encounter using the Mthmr API.
Mthmr uses standard HTTP response codes to indicate the success or failure of API requests.
- Codes in the 2xx range usually indicate success.
- Codes in the 4xx range indicate an error that occurred based on the information provided (e.g., a missing parameter, etc.)
- Codes in the 5xx range indicate an internal error.
Example
{
"detail": [
{
"detail": [
{
"loc": [
"string"
],
"msg": "Invalid request.",
"type": "INVALID_REQUEST."
}
]
}
]
}
Response attributes for errors
See what error codes are returned by Mthmr's Rest API.
HTTP Status Code | Code | Description |
---|---|---|
400 Invalid Request Error | INVALID_REQUEST. | Invalid request. |
404 Not Found Error | NOT_FOUND. | Resource not found. |
422 Validation Error | VALIDATION_ERROR. | Validation error. |
500 Internal Server Error | INTERNAL_ERROR. | Internal error. |
504 Gateway Timeout | REQUEST_TIMEOUT. | Request timeout. |