Skip to main content
Every error returns a consistent JSON envelope with a stable machine-readable code you can branch on:
Some codes add fields (scope, retry_after_seconds). Branch on code, not on message. Every response also carries an X-Request-Id header — include it when contacting support.

Catalogue

Malformed request bodies (failing schema validation) return FastAPI’s standard 422 response rather than this envelope.