HTTP Status Codes
Success Codes
Client Error Codes
Server Error Codes
Error Response Format
Error responses return a plain text message in the response body describing the error:Common Errors
Authentication Errors (401)
Missing Authorization Header
Authorization header is not included in the request.
Solution: Add the Authorization header with your API key:
Invalid or Inactive API Key
- Verify your API key is correct
- Generate a new API key from your dashboard
- Ensure the key hasn’t been deactivated
Invalid Token Payload
- Refresh your OAuth token
- Verify the token is properly formatted
- Check that the token hasn’t expired
Validation Errors (400)
Invalid Base64 Data
Unsupported File Type
File Must Have a Filename
Task Cannot Be Updated
Succeeded or Failed state.
Solution: Wait for the task to complete before attempting to update it.
Task Cannot Be Cancelled
Starting status can be cancelled.
Solution: You cannot cancel tasks that have already begun processing.
Resource Errors (404)
Task Not Found
- Verify the task ID is correct
- Check if the task has expired (expired tasks are automatically deleted)
- Ensure you’re using the same API key that created the task
Rate Limiting Errors (429)
Usage Limit Exceeded
Server Errors (500)
Internal Server Error
- Check if the error is transient by retrying the request
- Verify your request payload is valid
- Contact support if the error persists
Database Connection Error
Failed to Process File
- Verify your file is not corrupted
- Check that the file size is within limits (max 1GB)
- Try with a different file to isolate the issue
Task-Specific Errors
Task Status Messages
Tasks can fail with specific messages in themessage field:
Page Limit Exceeded
Task Timed Out
- The document may be too complex
- Try with a smaller document
- Contact support if timeouts persist
Error Handling Best Practices
1. Check Status Codes
Always check the HTTP status code before parsing the response:2. Implement Retry Logic
For transient errors (429, 500), implement retry logic with exponential backoff:3. Handle Specific Error Cases
Different errors require different handling:4. Log Errors for Debugging
Log both successful and failed requests for debugging:Next Steps
Authentication
Review authentication methods and requirements
API Overview
Learn about rate limits and API capabilities
Task Endpoints
Explore task management endpoints