Errors
Ivy’s API utilizes standard HTTP response codes to provide information about the success or failure of API requests.
2xx
Range (Success): Codes in this range indicate a successful API request. This means the requested operation was completed as expected.
4xx
Range (Client Errors): Codes in this range indicate an error related to the client’s request. These errors may occur due to missing required parameters, payment failures, or other client-specific issues.
5xx
Range (Server Errors): These codes indicate an issue with Ivy’s servers. When you encounter a code in this range, it signifies an error on Ivy’s side rather than an issue with the client’s request.
Understanding these response codes helps developers work with Ivy’s API effectively and handle different scenarios appropriately, ensuring smooth and reliable integration.
HTTP Status Code Summary
Status Code | Description |
---|---|
200 - OK | The request was successful, and everything worked as expected. |
400 - Bad Request | The request was unacceptable, often due to a missing required parameter. |
401 - Unauthenticated | The request was not authorized due to an invalid or missing API Key. |
403 - Authorization | The provided API Key doesn’t have the necessary permissions to perform the request. |
404 - Not Found | The requested resource does not exist. |
409 - Conflict | The request conflicts with another request, often due to using the same idempotent key. |
423 - Locked | The requested resource is temporarily locked due to an ongoing operation. Please wait for the resource to become available again before retrying. |
429 - Too Many Requests | Too many requests were made to the API in a short period. We recommend implementing exponential backoff for your requests. |
500 - Internal Server Error | This code indicates a rare issue on Ivy’s servers: something went wrong on our end. |
Error Attributes
code string
A short string indicating the specific error code.
devMessage string | undefined
A human-readable message providing additional details about the error.