Skip to content

Error codes

Every error code grouped by area, with what it means and what to do. Branch your code on code, show the user message, log details.

  1. Read code, not message. Messages are localised and get reworded. Codes do not change.
  2. Group codes by what you will do about them. Most fall into four buckets: fix the input and retry, tell the customer to do something, wait and retry, and never retry.
  3. Log details and your X-Correlation-ID together. These two make a support ticket resolvable in minutes.
  4. Handle the never-retry codes explicitly. They are the only ones where a retry actively causes harm.