Errors
We use conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx
range indicate success. Codes in the 4xx
range indicate an error that failed given the information provided (e.g., a required parameter was omitted). Codes in the 5xx
range indicate an error with our servers.
Some 4xx
errors that could be handled programmatically include an error code that briefly explains the error reported.
Below is a non-exhaustive list of the type of HTTP response codes you can expect:
HTTP Status Code
Error Model
Whenever a request is unsuccessful, our API will return an error response with an error type and message. You can use this information to understand better what has gone wrong and how to fix it. Most of the error messages are pretty helpful and actionable.
error_code
string
message
string
documentation_url
string