Skip to content
ComPDF

Error Codes

Error Response Format

PDF processing service error responses use the following JSON structure:

json
{
  "code": 110001,
  "message": "page range out of bounds: 0-99",
  "traceId": "a1b2c3d4e5f6..."
}
FieldTypeDescription
codeInteger6-digit numeric error code, programmatic identifier
messageStringError description with field name or context
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

PDF Functional Error Codes

These errors originate from the PDF processing service.

100xxx — General Request & File Errors

CodeError CodeHTTPDescription
100001INVALID_ARGUMENT400Missing, wrong type, or invalid enumeration value
100002INVALID_JSON400JSON parsing failed
100003CONFLICTING_ARGUMENTS400Mutually exclusive parameters provided together
100101INVALID_FILE_TYPE400File type does not meet endpoint requirements
100102FILE_REQUIRED400Required file field is missing
100103FILE_COUNT_MISMATCH400Multi-file count does not match parameter array count
100104FILE_TOO_LARGE413File size exceeds server limit
100106INVALID_OUTPUT_FILE_NAME400Invalid output file name

110xxx — Page & Coordinate Errors

CodeError CodeHTTPDescription
110001INVALID_PAGE_RANGE400Invalid page range or page number out of bounds
110002INVALID_PAGE_INDEX400Negative page index or exceeds document page count
110003INVALID_RECT400Invalid rectangle parameters
110005PAGE_RANGE_EMPTY400No processable pages after parsing

120xxx — Password & Certificate Errors

CodeError CodeHTTPDescription
120001PASSWORD_REQUIRED400Document is encrypted but no password provided
120002INVALID_PASSWORD400Incorrect PDF password
120101CERTIFICATE_INVALID400Certificate file cannot be parsed or format unsupported
120102CERTIFICATE_PASSWORD_REQUIRED400Certificate requires a password but none provided
120103CERTIFICATE_PASSWORD_INVALID400Incorrect certificate password
120201ICC_PROFILE_REQUIRED400ICC file required for standardization conversion

130xxx — Business State Errors

CodeError CodeHTTPDescription
130002UNSUPPORTED_ENUM_VALUE400Enumeration value is not within allowed range
130101SIGNATURE_NOT_FOUND404Specified signature does not exist
130102WATERMARK_NOT_FOUND404Specified watermark does not exist
130103BACKGROUND_NOT_FOUND404No operable background in document
130104HEADER_FOOTER_NOT_FOUND404No header/footer configuration in document
130105BATES_NOT_FOUND404No Bates numbering in document
130106REDACTION_NOT_FOUND404No applicable redaction marks found
130107NO_CHANGES_DETECTED422Operation succeeded but no changes produced

190xxx — Processing & System Errors

CodeError CodeHTTPDescription
190001PROCESS_FAILED500Service processing failed (document open/save/operation error)
190002TEMP_FILE_WRITE_FAILED500Temporary file write failed
190003TEMP_FILE_READ_FAILED500Temporary file read failed
190004RESULT_PACKAGE_FAILED500Multi-file result packaging failed
190999INTERNAL_ERROR500Unclassified internal error

Retry Recommendations

Error Code RangeRetryableRecommendation
100xxxNoFix request parameters or file and resubmit
110xxxNoFix page numbers or coordinates and resubmit
120xxxNoFix password or certificate and resubmit
130xxxNoResource not found or business state error, fix request
190xxx (except 190999)RecommendedService 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