Skip to main content
The Chataigne API uses conventional HTTP status codes and returns a structured JSON body when a request fails.

Error fields

string
Broad category suitable for programmatic handling.
string
Stable reason within the category.
string
Human-readable explanation for developers. Do not branch application logic on this text.
string | null
Request field associated with the failure, when applicable.
string
Identifier used to trace the request. It matches the X-Request-Id response header.

Status codes

  1. Branch on the HTTP status, then on error.type and error.code when needed.
  2. Show validation feedback near error.param when it is present.
  3. Retry only transient failures (429 and selected 5xx responses), with exponential backoff and jitter.
  4. Log error.request_id with your own operation identifiers, without logging the API key or unnecessary customer data.
  5. Include the request ID when contacting Chataigne support.
Node.js
See Request IDs, Rate limits, and Idempotency for retry-related details.