Skip to content

Error Handling

The backend commonly returns JSON with:

{
"status": false,
"message": "Unauthorized"
}

helpers.handle_path() returns a 500 Robyn response with the exception description when route dispatch fails.

Frontend code observes:

  • 401 for failed session checks;
  • 403 with pending behavior for accounts awaiting approval;
  • successful responses with route-specific payloads.

The repository does not expose a single stable error schema for every route.

For that reason, the OpenAPI file documents top-level response patterns and known status codes without inventing a universal error object.