Skip to main content
An error always answers in JSON with at least a readable message. Messages are in the installation’s default language: rely on the HTTP code and the field names, not on the text.

The codes

Validation errors

422 with the detail field by field:
Fields inside arrays are named by their position: subscribers.14.email is the 15th line of a batch.

Refusals that are not about the data

Some 422 answers carry only a message, because the data is valid but the operation is not possible:

Retry or not

  • Retry on 429, on 5xx and on network errors, with a growing delay and the same Idempotency-Key.
  • Do not retry a 4xx: the same call gives the same answer. Fix it first.