Error response format
All error responses share the same schema:LinksErrorGetResponse schema, where code is numeric:
type: {"message": "...", "resource": "..."}. See 404 Not Found.
400 Bad Request
401 Unauthorized
403 Forbidden
404 Not Found
409 Conflict
410 Gone
422 Unprocessable Entity
429 Too Many Requests
500 Internal Server Error
501 Not Implemented
503 Service Unavailable
General recommendations
1
Retry with exponential backoff
For 429, 500, and 503 errors, wait 1 second before the first retry, then 2, 4, and 8 seconds, up to a maximum of 5 attempts.
2
Do not retry client errors
Status codes 400, 401, 403, 404, 409, and 422 signal a problem with the request. Retrying them unchanged produces the same result.
3
Validate the request body before sending
Use a JSON Schema validator to ensure all required fields are present and typed correctly.
4
Cache tokens
The
access_token lasts 3600 seconds. Reuse it until expiry instead of requesting a new token on every call to avoid unnecessary 401 errors.5
Monitor service health
Implement periodic checks of
GET /health/status to detect degradation before it affects your users.