2xx
indicate success, while codes in the range of 4xx
indicates that the request failed as a result of the something provided in the request data.
And codes in the range 5xx
are unexpected server errors.
Every error includes a type. We have 4 possible values
api_error
, authentication_error
, idempotency_error
, or invalid_request_error
api_error
api_error
These are unexpected errors from our end.
authentication_error
authentication_error
Authentication error has to do with your API keys or the Bearer authentication scheme not passed correctly
idempotency_error
idempotency_error
Another request with same idempotency key is still processing
invalid_request_error
invalid_request_error
Your request include incorrect or invalid parameters
This is a more specific error code that summarises the error. Can be implemented or caught in your code for specific error handling.
A detailed human-readable message providing information about the error.