code, human-readable message, and correlationId.
Typical error payload
Common scenarios
- Auth issues: refresh or request the correct scopes
- Validation: fix request shape or business rule violations
- Rate limiting: handle
429with backoff and respectRetry-After - Server errors: retry with idempotency and backoff
Observability
- Log
correlationId, HTTP status, and request path. - Include
correlationIdwhen opening a support ticket; it maps directly to backend traces.
- HTTP method, path, status,
correlationId, andcode - Request/response timestamps
- Idempotency key (for write flows)
Retry patterns
- Do not retry 4xx except
429. - Use exponential backoff (e.g., 1s, 2s, 4s) with jitter.
- Keep booking/payment operations idempotent to safely retry.