Error Response Format
All Enrow API errors follow this structure:Common Errors
400 — Bad Request
401 — Unauthorized
x-api-key header (not Authorization).
402 — Insufficient Credits
GET /account. Top up credits or upgrade your plan at enrow.io/pricing.
429 — Rate Limit Exceeded
500 — Internal Server Error
Implementing Error Handling
Basic Example
Retry Logic with Exponential Backoff
Best Practices
- Don’t retry 4xx errors (except 429) — fix your request instead
- Retry 429 errors — respect the
retry_aftervalue - Retry 5xx errors — with exponential backoff
- Use webhooks instead of polling to avoid hitting rate limits unnecessarily
- Log errors with context — include the endpoint, parameters, and timestamp for debugging

