Skip to main content
The SDK throws typed errors you can catch and handle based on the error type.

Error types

Basic error handling

Automatic retries

The SDK automatically retries 429 and 5xx responses with exponential backoff up to maxRetries (default: 2).

Error properties

All SDK errors include: