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
Recommended handling
- Branch on the HTTP status, then on
error.typeanderror.codewhen needed. - Show validation feedback near
error.paramwhen it is present. - Retry only transient failures (
429and selected5xxresponses), with exponential backoff and jitter. - Log
error.request_idwith your own operation identifiers, without logging the API key or unnecessary customer data. - Include the request ID when contacting Chataigne support.
Node.js