Error Handling
When interacting with the Isosceles API, you might encounter errors that need to be handled gracefully in your application. All errors follow the same format and have status codes in the 400 to 500 range.Error Response Format
All error responses from the Isosceles API will have the following JSON structure:Example Error Response
Here’s an example of what an error response might look like:Status Codes
The Isosceles API uses standard HTTP status codes to indicate the success or failure of an API request. Errors will have status codes in the 400 to 500 range.Common Error Codes
- 400 Bad Request: The server could not understand the request due to invalid syntax. Example: Missing required parameters.
- 401 Unauthorized: The client must authenticate itself to get the requested response. Example: Invalid API key.
- 403 Forbidden: The client does not have access rights to the content. Example: Accessing a restricted resource.
- 404 Not Found: The server can not find the requested resource. Example: Invalid endpoint.
- 500 Internal Server Error: The server has encountered a situation it doesn’t know how to handle. Example: Unexpected error on the server side.