Error Codes & Handling
Complete guide to RegPilot API errors and how to handle them.HTTP Status Codes
| Code | Status | Meaning |
|---|---|---|
200 | Success | Request completed successfully |
400 | Bad Request | Invalid request format or parameters |
401 | Unauthorized | Missing or invalid API key |
403 | Forbidden | Insufficient permissions |
429 | Too Many Requests | Rate limit exceeded |
500 | Internal Server Error | Server-side error |
503 | Service Unavailable | Temporary service disruption |
Error Response Format
All errors return JSON with this structure:Common Errors
400 Bad Request
Missing Required Field
Invalid Quality Tier
401 Unauthorized
Missing API Key
Invalid API Key
429 Too Many Requests
Retry-After: 60(seconds)X-RateLimit-Limit: 100X-RateLimit-Remaining: 0X-RateLimit-Reset: 1699999999
500 Internal Server Error
request_id.
Error Handling Patterns
Basic Error Handling
Advanced Error Handling
Python Error Handling
Validation Errors
Invalid Message Format
Token Limit Exceeded
Best Practices
1. Always Check Status
2. Implement Exponential Backoff
3. Log Request IDs
4. Circuit Breaker Pattern
Next: Rate Limits →