Skip to content
ComPDF

Error Codes

Error Response Format

Conversion service error responses use the following JSON structure:

json
{
  "code": 100104,
  "errorCode": "FILE_TOO_LARGE",
  "message": "Human-readable description",
  "traceId": "a1b2c3d4e5f6..."
}
FieldTypeDescription
codeIntegerNumeric error code, programmatic identifier
errorCodeStringSemantic error identifier, for readability only
messageStringError description
traceIdStringFull-link trace ID

Common Service Error Codes

These errors are handled by the service framework and apply to all ComPDF API endpoints.

01xxx — System Errors

CodeHTTPDescription
01001500Internal system error
01002500Failed to upload processed file to storage
01003500File upload error
01004500Failed to download your uploaded file
01005400File cannot be empty
01006400Invalid parameters, please set valid file parameters
01007400Task ID cannot be empty

02xxx — File Format Errors

CodeHTTPDescription
02001400File format error
02002400Unsupported file format for processing
02003400Unsupported image format
02201400The file is encrypted
02207400Failed to open file: unsupported format or encrypted
02209413File too large, please upload a smaller file
02210500File processing failed
02212500File processing failed: abnormal output file size

03000 — Parameter Validation Error

CodeHTTPDescription
03000400Parameter validation failed, typically due to missing required fields or incorrect field formats

04xxx — File & Business Errors

CodeHTTPDescription
04001400File key does not exist
04002400File size is zero
04003400File does not exist or cannot be opened
04007400Only one file is allowed for this endpoint
04008400Merge PDF supports at most 5 files

05xxx — Task Errors

CodeHTTPDescription
05001404Task does not exist or is invalid
05002409Abnormal task status
05003400File count per task has reached the threshold
05004410Task expired and was not executed
05005400At least one file is required per task

06001 — Insufficient Assets

CodeHTTPDescription
06001402You have run out of processing quota, please purchase a plan

Authentication & Authorization

HTTPCodeDescription
401401Invalid or missing API Key; authentication service unavailable
403403Insufficient permissions

Conversion Functional Error Codes

These errors originate from the document conversion service.

100xxx — General Request & File Errors

CodeError CodeHTTPDescription
100001INVALID_REQUEST400Missing or malformed parameters
100101INVALID_FILE_TYPE415Uploaded file is not a PDF
100104FILE_TOO_LARGE413File exceeds sync limit, use async endpoint
100105PAGE_LIMIT_EXCEEDED422PDF page count exceeds limit

120xxx — Authentication Errors

CodeError CodeHTTPDescription
120001AUTH_REQUIRED401Missing authentication credentials
120002INVALID_TOKEN403Invalid or expired authentication token

130xxx — Business State Errors

CodeError CodeHTTPDescription
130001NOT_FOUND404/410Document or job not found, or result has been cleaned
130002JOB_NOT_READY409Job not yet completed, cannot download
130003INVALID_STATE409Job already in terminal state, cannot cancel
130004IDEMPOTENCY_IN_PROGRESS409Request with same idempotency key is being processed

190xxx — Processing & System Errors

CodeError CodeHTTPDescription
190001CONVERT_FAILED500Document conversion failed (corrupted file or internal error)
190002PDF_PASSWORD_ERROR422Incorrect or missing PDF password
190003PDF_FORMAT_ERROR400Invalid PDF format or corrupted file
190004PDF_SECURITY_ERROR400PDF uses unsupported encryption
190005OCR_FAILURE500OCR recognition failed
190006JOB_TIMEOUT408Conversion processing timed out
190007NO_TABLE422No tables found in source file
190008OUT_OF_MEMORY500Out of memory during processing, try a smaller file
190009FILE_ERROR400File cannot be opened or does not exist
190010IMAGE_INVALID400Invalid, corrupted, or unsupported image format
190999INTERNAL_ERROR500/503Internal service error or dependency not ready

Retry Recommendations

Error Code RangeRetryableRecommendation
100xxxNoFix request parameters or file and resubmit
120xxxNoFix authentication credentials and resubmit
130001130004DependsResource-not-found not retryable; state conflict can retry after checking
190001190010RecommendedService processing issues, backoff and retry (max 3 times)
190999RecommendedInternal error, backoff and retry
06001NoPurchase a plan to continue
01xxx, 02xxx, 04xxxNoFix the file or parameters and retry