Skip to main content
The Reducto JavaScript SDK throws specific error classes for different error conditions.

Error Classes

All error classes are exported from the main reductoai module:

Common Error Handling


Retry Logic

Automatic Retries

The SDK automatically retries requests on:
  • Connection errors (APIConnectionError)
  • Request timeouts (APIConnectionTimeoutError)
  • 408 Request Timeout
  • 409 Conflict
  • 429 Rate Limit
  • 5xx Internal Server Errors
Default retry count is 2, configurable via maxRetries:

Next Steps