HTTP error codes in use
The API uses the following HTTP codes to communicate errors:| HTTP Code | Error type | Description |
|---|---|---|
| 400 | Client error | Returned when there is a type mismatch in the request body, invalid fields, or other structural issues in the request. |
| 401 | Unauthorized | Returned when the request could not be authenticated (e.g. missing or invalid API key). |
| 404 | Not found | Returned when the requested resource does not exist. |
| 429 | Too many requests | Returned when you exceed the rate limit. Throttle requests and use the rate limit headers to retry appropriately. |
| 500 | Unexpected error | Returned when an unexpected problem occurs on our servers. Retry with exponential backoff. |
Error object
Every error response uses the same structure: a singleerror object with messageKey and message.