Skip to main content
The Spritz API returns errors as RFC 9457 problem details: a standard, machine-readable JSON shape (served as application/json). Build your error handling against it once and it works across every endpoint.

Problem shape

Some problems include extension members alongside the standard fields for additional context, for example code, realm, scope, resourceType, and resourceId. Treat unknown extension members as optional.

Status codes

Handling errors

Branch on type (stable) rather than title or detail (human-readable, may change). Surface detail to operators and logs, not directly to end users.