Error response shape
Common codes
UNAUTHORIZED— missing/invalid tokenFORBIDDEN— scope missing or insufficient org permissionsVALIDATION_FAILED— request shape or business rules not metNOT_FOUND— resource does not exist or is not visibleRATE_LIMITED— too many requestsSERVER_ERROR— unexpected error on our side
| Status | Action |
|---|---|
| 400/422 | Fix request shape/validation and retry |
| 401 | Refresh token or fix credentials |
| 403 | Request missing scopes/permissions |
| 404 | Verify IDs and visibility |
| 429 | Back off, honor Retry-After, keep idempotent |
| 5xx | Retry with backoff and idempotency |
Validation and observability
- Requests are validated at the edge; you will always get structured messages.
- Every response includes a
correlationId. Provide it when contacting support.
Retry guidance
- 4xx: fix the request before retrying.
- 429: back off with exponential retry (e.g., 1s, 2s, 4s) and respect
Retry-Afterif provided. - 5xx: retry with backoff; keep attempts idempotent.
Best practices
- Log
correlationId, HTTP status, andcodefor each call. - Prefer idempotent operations when retrying booking flows.
- Validate inputs client side to avoid avoidable
VALIDATION_FAILEDresponses.