Skip to main content
All SDK errors extend VerialError. API errors extend APIError with a numeric status, a string code, and an optional requestId captured from the response.

Hierarchy

Fields

Every APIError exposes: RateLimitError additionally exposes:

Catching

Retry Behavior

The SDK automatically retries these statuses with exponential backoff + jitter:
  • 408 Request Timeout
  • 429 Too Many Requests (honors Retry-After)
  • 500 / 502 / 503 / 504
It also retries network errors (APIConnectionError). APITimeoutError is not retried — it surfaces immediately so callers can decide. Retries default to 2 (3 total attempts). Override with maxRetries:
Backoff: min(0.5 * 2^attempt, 8) seconds with ±20% jitter. Retry-After on 429 overrides the backoff.

Timeouts

Requests time out after 60000 ms by default. Override per-client:
A timeout throws APITimeoutError immediately without retrying.