Skip to main content
Every error from the Chief Public API uses the same JSON envelope:
code values are additive. Existing codes are never reworded.

HTTP status reference

Documented error codes

Additional operation-specific codes may appear in v1. Prefer HTTP status for broad handling and code when you need precise branching.

Validation errors

Invalid JSON bodies, unknown fields, or id shape mismatches typically return HTTP 400. Resource ids use fixed prefixes and lengths:

Client recommendations

  • Log code and HTTP status for support and metrics.
  • Show humane to users when appropriate; do not parse it for control flow.
  • Retry 5xx with exponential backoff.
  • Do not retry 4xx unless you fix the request (for example, add a valid X-Project-Id).

Pagination errors

See Pagination for valid query parameters.