Skip to main content

Error Response Structure

All errors return a consistent JSON object:
Example Error

Error Types

Retry Strategy

Never retry 4xx errors (except 429). Client errors like 400, 401, 403, 404, and 422 will not resolve on retry. Fix the request first.
For retryable errors (429, 5xx), use exponential backoff with jitter:
Add random jitter (0-500ms) to each delay to prevent thundering herd when multiple clients retry simultaneously.

Implementation Example