Stable v1.0Last updated recently
Get Started→Error Codes
Comprehensive guide to DocScanner API error codes and how to handle them.
Error Codes
Error Response Format
All API errors follow a consistent JSON structure:
json
{
"status": 401,
"message": "API key required for API access",
"result": null
}Common Error Codes
401
invalid_api_keyThe API key provided is invalid, expired, or missing. Check your Authorization header.
400
invalid_file_formatThe uploaded file format is not supported. Please use PDF, JPEG, PNG, or CSV.
404
document_not_foundThe document was not found. Please check the document ID and try again.
429
rate_limit_exceededYou've exceeded your rate limit. Wait before making additional requests or upgrade your plan.
413
file_too_largeThe uploaded file exceeds the 50MB limit. Compress or split the file before uploading.
500
internal_server_errorAn unexpected error occurred on our servers. Retry the request or contact support.
