Skip to main content

Error Response Format

Authentication Errors (401/403)

Validation Errors (400)

General Validation

Address Validation

Identity Validation

Contact Validation

Parcel Validation

Order Errors (404/409)

Manifest Errors (400/409)

Label Errors (404/409)

Rate Limiting (429)

Response includes retryAfter field:

Idempotency Errors (409)

Server Errors (500)

Handling Errors

Retryable Errors

These errors can be retried with exponential backoff:
  • RATE_LIMIT_EXCEEDED
  • SERVICE_UNAVAILABLE
  • INTERNAL_ERROR (after delay)
  • IDEMPOTENCY_IN_PROGRESS (after short delay)

Non-Retryable Errors

These errors require code changes or user action:
  • AUTH_* errors
  • VALIDATION_* errors
  • *_NOT_FOUND errors
  • *_DUPLICATE_* errors
  • *_LOCKED errors

Example Error Handler