Errors Reference
A comprehensive guide to handling API errors gracefully. We use standard HTTP codes enhanced with detailed JSON context.
Standard Error Format
All error responses return a standardized JSON object. The detail field contains structured information to help you debug or display user-friendly messages.
Errors Reference
Validation Errors
VALIDATION_ERRORGeneral validation failure.
INVALID_INPUTThe provided input format is incorrect.
MISSING_FIELDA required field is missing from the payload.
Authentication Errors
AUTH_ERRORAuthentication failed.
INVALID_API_KEYThe API key provided is invalid or disabled.
API_KEY_EXPIREDThe API key has expired.
INSUFFICIENT_PERMISSIONSThe API key does not have permission to access that resource.
File Upload Errors
INVALID_FILE_TYPEOnly PDF and DOCX files are supported.
FILE_TOO_LARGEFile exceeds the maximum size limit (5MB).
FILE_CORRUPTEDThe file could not be read or is corrupted.
PDF_QUALITY_ISSUEThe PDF contains scanned images or unreadable text.
Rate Limiting
RATE_LIMIT_EXCEEDEDToo many requests in a short period.
QUOTA_EXCEEDEDMonthly API quota has been reached.
Server Errors
PARSING_FAILEDThe parsing engine failed to process the document.
AI_PROCESSING_FAILEDThe AI model encountered an error analyzing the content.
INTERNAL_ERRORAn unexpected internal server error occurred.
SERVICE_UNAVAILABLEThe service is temporarily unavailable.
Need help debugging?
If you encounter a INTERNAL_ERROR consistently, please contact support with the request ID and timestamp. Note that AI_PROCESSING_FAILED may occur if the input content is too ambiguous or violates safety policies.