Skip to main content

Error Response Format

All errors return a consistent structure:

HTTP Status Codes

Error Codes

Client Errors (4xx)

Server Errors (5xx)

Retry Logic

When to Retry

Retry these errors:
  • 429 (Rate Limited)
  • 500 (Server Error)
  • 502/503 (Service Unavailable)
  • 504 (Timeout)
Don’t retry these:
  • 400 (Bad Request)
  • 401 (Invalid API Key)
  • 402 (Insufficient Credits)
  • 422 (Invalid PDF/Password)

Exponential Backoff

Timeout Configuration

CDSL fetch Step 1 takes 15-20 seconds due to automated captcha solving. Set timeout to at least 50s.

Graceful Degradation

Request Tracing

Every response includes an X-Request-ID header:
Include this ID when contacting support for faster resolution.

Monitoring & Alerts

Track Error Rates

Set Up Alerts

Monitor these metrics:
  • Error rate — Alert if greater than 5% of requests fail
  • Timeout rate — Alert if greater than 2% timeout
  • Credit balance — Alert when less than 10 credits remain

Next Steps

Response Schema

Understand the response structure

Support

Contact support