Errors
Every error is a problem document with a stable code you can act on.
On this page
Errors come back as application/problem+json (RFC 9457). Act on code, which never changes meaning; show detail to people, which is written in the language you asked for.
{
"type": "https://opentourbase.com/developers/errors#validation_failed",
"title": "Validation failed",
"status": 422,
"detail": "The request has 1 invalid field.",
"code": "validation_failed",
"requestId": "01JD3XB0V7M2A8K4R6T9W1Y3Z5",
"errors": {
"units.0.quantity": [
"Must be at least 1."
]
}
}What to do
- 400 and 422: fix the request; errors names each field.
- 401: the key is missing, wrong, revoked or expired.
- 403: the key lacks a scope, needs to be live, or the account is suspended.
- 409: the state does not allow it now (sold out, already confirmed); read the code.
- 429: slow down and retry after Retry-After seconds.
- 500 and 503: retry later with the same Idempotency-Key. Quote requestId to support.
The full list of codes is on the error catalogue page.