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

401invalid_api_key

The API key provided is invalid, expired, or missing. Check your Authorization header.

400invalid_file_format

The uploaded file format is not supported. Please use PDF, JPEG, PNG, or CSV.

404document_not_found

The document was not found. Please check the document ID and try again.

429rate_limit_exceeded

You've exceeded your rate limit. Wait before making additional requests or upgrade your plan.

413file_too_large

The uploaded file exceeds the 50MB limit. Compress or split the file before uploading.

500internal_server_error

An unexpected error occurred on our servers. Retry the request or contact support.