Error types
| Error | Cause |
|---|---|
AuthenticationError | Invalid or missing API token |
AuthorizationError | Valid token but insufficient permissions |
NotFoundError | Resource doesn’t exist or isn’t accessible |
ValidationError | Invalid request parameters |
RateLimitError | Too many requests |
FeatureNotEnabledError | Feature requires a plan upgrade |
UpstreamError | Carrier or terminal API is unavailable |
Terminal49Error | Generic error fallback |
Basic error handling
Automatic retries
The SDK automatically retries429 and 5xx responses with exponential backoff up to maxRetries (default: 2).
Error properties
All SDK errors include:| Property | Type | Description |
|---|---|---|
message | string | Human-readable error description |
status | number | HTTP status code |
details | unknown | Raw error payload from the API |