Skip to content

Error Handling

Common Errors

List of common errors for both REST and WebSocket APIs.

Error 400: Bad Request

  • Description: The request was invalid or cannot be otherwise served.
  • Example Response:
    {
      "status": "error",
      "message": "Invalid request format."
    }
    

Error 401: Unauthorized

  • Description: Authentication failed or user does not have permissions.
  • Example Response: ```json

{ "status": "error", "message": "Unauthorized access." } ```

Error 404: Not Found

  • Description: The requested resource could not be found.
  • Example Response:
    {
      "status": "error",
      "message": "Resource not found."
    }
    

Error 500: Internal Server Error

  • Description: An error occurred on the server.
  • Example Response:
    {
      "status": "error",
      "message": "Internal server error."
    }