Errors
The error document and the status codes the API answers
The API uses standard HTTP status codes: 2xx for success, 4xx for a problem with the request, 5xx for a problem on our side. Every error answers a JSON:API error document with Content-Type: application/vnd.api+json.
The error document
A validation failure lists one error object per problem, so a single response can carry several entries in errors.
Status codes
Handling errors
- Branch on the HTTP status and on
status, not ondetail: the wording ofdetailcan improve over time. - Show
detailto a person when it helps: it is written to be read. - Use
source.parameterto point at the field to fix.
