Documentation menu

api

Errors

Structured, safe errors with stable status codes.

Last updated 2026-07-10

Shape

error response
{ "error": "this key lacks the 'generate' scope" }

Status codes

StatusMeaningRetry?
400Invalid JSON or missing required fieldsFix the request
401No session or key, or the key is revokedRe-authenticate
403Key lacks the required scopeReconnect with the right scopes
404Unknown route or resourceCheck the path against the discovery doc
422Safety policy refused the content, or a publish gate refusedDo not retry unchanged; read the reason
500Unexpected server errorRetry once, then report
501The capability is honestly not wired yet (for example paid checkout)See /build for status

Blocked outcomes

Safety blocks return a structured outcome with a human-readable reason and spend nothing. They are logged; repeated evasion attempts violate the acceptable use policy.

Errors | Cadenza Docs