AuthSpokeAuthSpoke Developers

Errors & Status Codes

How AuthSpoke reports success and failure — status codes and structured error bodies.

AuthSpoke uses conventional HTTP status codes and returns structured JSON error bodies.

Status codes#

CodeMeaning
200Success.
201Resource created.
204Success, no content (e.g. a delete).
400Malformed request (bad body or path value).
401Authentication failed — e.g. email not verified during registration.
403Forbidden — missing/invalid token, an unlicensed capability, or a provider-only route.
404Resource not found (or not in your tenant).
500Unexpected server error.

Structured errors#

Capability and provider denials return a machine-readable body:

{
  "error": "capability_not_licensed",
  "capability": "IDENTITY_FOUNDATION",
  "message": "This capability is not enabled for your tenant."
}
{
  "error": "provider_admin_required",
  "message": "The Provider console is restricted to AuthSpoke support admins."
}

Handling 403s#

A 403 can mean three different things — branch on the body:

  • No error field → your bearer token is missing or invalid. Re-authenticate.
  • capability_not_licensed → the tenant hasn't licensed that SKU. See Capability SKUs.
  • provider_admin_required → the route is cross-tenant and provider-only. See Provider Console.

Tenant isolation#

A resource that exists in another tenant returns 404 (not 403) — AuthSpoke never confirms the existence of data outside your tenant.