Error Handling
The API uses standard HTTP status codes to indicate success or failure:
- 200 OK: Successful request
- 400 Bad Request: Invalid input parameters
- 401 Unauthorized: Authentication failed (invalid token)
- 403 Forbidden: User is not authorized to access this resource
- 500 Internal Server Error: Unexpected server error
Error responses will include a JSON payload with details about the error:
{
"error": "Invalid parameter",
"code": 400
}