Error handling

Most failed validation and domain errors return JSON with an errors array. Each item typically includes a field code (often the input key) and a human-readable message.

Validation example

{
  "errors": [
    {
      "code": "email",
      "message": "The email field is required."
    }
  ]
}

Auth failure

Missing or invalid Bearer tokens on auth:api (and equivalent vendor/driver guards) yield HTTP 401 / unauthorized responses. Clients should clear the stored token and return the user to login or guest session flows.

HTTP status conventions

Tips for integrators