Skip to main content

Error response shape

Every error returns this structure:
  • code — stable, machine-readable string. Match on this. Part of the V1 API contract.
  • message — human-readable. May change without notice. Do not parse.
  • status — HTTP status code (duplicated in the body for convenience).
For rate limit errors, an additional field is included:

Complete error code reference

These error codes are part of the V1 API contract. Existing codes will not be removed or renamed without a new API version. New codes may be added (non-breaking).

SDK exception mapping

The Python SDK maps each error code to a typed exception:

CLI exit codes