Skip to main content
Dugble returns structured JSON errors with an HTTP status code, a stable machine-readable error code, and a public message.

Error response

Internal causes are never serialized into API responses.

Error codes

Handling errors

Use the HTTP status for broad retry and control-flow decisions, and use error.code for application-specific handling. For example, do not automatically retry most 4xx errors. A 429 TOO_MANY_REQUESTS or some transient 5xx responses may be retryable with backoff, while a 400 BAD_REQUEST should be corrected before retrying. When retrying a mutation, reuse the same Idempotency-Key. See Idempotency.