Error Handling
The Fabius API uses standard HTTP status codes to indicate the success or failure of requests. Detailed error messages are included in the response body to help you troubleshoot issues.HTTP Status Codes
| Status Code | Description |
|---|---|
200 OK | Request succeeded |
201 Created | Resource created successfully |
400 Bad Request | Invalid request parameters or body |
401 Unauthorized | Missing or invalid authentication |
404 Not Found | Resource not found |
429 Too Many Requests | Rate limit exceeded |
500 Internal Server Error | Server error |
Error Response Format
All error responses include a JSON body with the following structure:Common Errors
Authentication Errors
401 Unauthorized - Missing Header- Missing Authorization header
- Wrong authentication scheme (must be “Basic”)
- Invalid client ID or secret
- Malformed Base64 encoding
- Deleted API key
Validation Errors
400 Bad Request - Missing Required Fieldlimit and offset parameters are valid positive integers.
500 Internal Server Error - User Not Found
2023-12-15T14:30:00Z).
Resource Errors
404 Not Found - DocumentError Handling Best Practices
1. Implement Retry Logic
For transient errors (5xx status codes), implement exponential backoff:2. Log Detailed Error Information
Always log the full error response for debugging:3. Validate Input Before Sending
Validate data client-side to avoid unnecessary API calls:Troubleshooting Guide
| Error | Common Causes | Solutions |
|---|---|---|
| 401 Unauthorized | Incorrect credentials, revoked key | Check API key configuration |
| 400 Bad Request | Missing fields, invalid data | Review request payload |
| 404 Not Found | Wrong ID, resource doesn’t exist | Verify resource IDs |
| 429 Too Many Requests | Exceeded rate limit | Implement retry with backoff |
| 500 Internal Server Error | Server issue, invalid references | Check data and retry if needed |
Getting Help
If you continue to experience issues:- Check the API status page for any ongoing incidents
- Review your request against the API documentation
- Contact support with your request details (excluding credentials)