Error Handling and Response Codes

Error Handling and Response Codes

Our API adheres to standard HTTP response code conventions, making it easier for developers to understand and manage the outcomes of their requests. When you make a successful API call, you'll receive a response with a status code in the 2xx range, indicating that the request has been processed correctly.

If there's an issue with the request itself—such as missing required parameters or providing invalid data—the API will return a status code in the 4xx range. These are client-side errors, and the accompanying error message typically provides additional details to help you pinpoint and correct the problem.

On the other hand, a 5xx status code points to an issue on the server side, indicating that something went wrong within our systems. In such cases, the error is not related to your input, and you may need to retry the request later or contact support for further assistance.

Each error response often includes a payload with detailed information about the error, which can be extremely helpful when troubleshooting or refining your integration. By understanding these response codes and the context of the error messages, you can handle exceptional cases more gracefully and build more robust integrations.


Next article Data Formats