Error Handling#

The API uses standard HTTP status codes to indicate the success or failure of requests. Common error codes include:

  • 400 Bad Request: The request was invalid or cannot be served.

  • 401 Unauthorized: Authentication failed or user does not have permissions for the requested operation.

  • 403 Forbidden: The request is understood, but it has been refused or access is not allowed.

  • 404 Not Found: The requested resource could not be found.

  • 500 Internal Server Error: Something went wrong on the server.

In case of an error, the response body contains more details about the error:

{
  "detail": "Error message describing the issue"
}

Remember that proper error handling, logging, and monitoring should be implemented to help diagnose and resolve issues quickly.