Overview
Our API uses standard HTTP status codes to indicate whether a request was successful or failed. While HTTP codes provide a high-level summary, we also return a structured JSON error object with descriptive fields so you can programmatically detect, log, and handle specific error cases. In general:- 2xx — The request succeeded.
- 4xx — The request failed due to a problem with the information provided (e.g., missing a required parameter, invalid value, business rule violation).
- 5xx — A problem occurred on our servers or with an upstream dependency (rare).
Error Response Format
When an error occurs, the response body includes a JSON object containing details about the error:
Example
HTTP Status Code Summary
Error Types
Best Practices for Handling Errors
- Log the full error object for troubleshooting.
- Handle
4xxerrors programmatically where possible (e.g., show themessageto the user if it’s safe to do so). - Implement retries with exponential backoff for
5xxor429errors. - Use
paramto highlight specific fields in form validation errors. - Monitor error rates to detect systemic issues early.
Related guide: Error Handling

