unsupported_document_type
Description
The document type is not supported by the endpoint.
- OCR: the requested
documentTypeis not in the OCR schema registry. - Certification: the first bytes of the
documentare not those of a PDF (%PDF-), a PNG or a JPEG, and the declared type of the part is nottext/plainorapplication/json. For a PDF, a PNG or a JPEG, the context reads the first bytes, not the declared type of the part.
HTTP Status
422 Unprocessable Entity
Typical Causes
- OCR: the caller supplied a document type outside OCR's supported schema registry.
- Certification: the file is a Word document, a ZIP or an archive, with a
.pdfname or anapplication/pdfdeclared type.
How To Fix
- OCR: send one of the document types published by the OCR extraction-request contract.
- Certification: send a PDF, a PNG or a JPEG, or send a UTF-8 plain text or a JSON document with the declared type
text/plainorapplication/json. Convert other formats to PDF first.