Error Handling

Error Handling

The API uses standard HTTP status codes and returns error messages in the following format:

{
    "message": "Error description",
    "details": "Additional error details (if available)"
}

Common status codes:

  • 200: Successful request

  • 400: Bad request (invalid parameters)

  • 401: Unauthorized (invalid API key)

  • 404: Resource not found

  • 500: Internal server error

All endpoints support CORS and include appropriate error handling with logging.

Last updated