Skip to main content
Every error has the same shape, so one handler covers them all:
  • code is stable. Branch on it in your code.
  • detail is a sentence for people. It may change, so don’t match on it.
  • errors lists each field that failed, on a 422.

Status codes

Retrying safely

Retry 429 and 5xx responses, and network errors, with the same Idempotency-Key and a growing wait between tries. Bouclay replays the first answer if the request already went through, so a retry never does the work twice. Don’t retry 4xx errors other than 429 without changing the request: they will fail the same way.