Skip to content

DocumentTextExtractionFailedResponse

The body of a 422 for an uploaded file Maitento could not read usable text from, even after trying OCR where it could. The failure is permanent for that file: don’t retry the upload, show the guidance instead.

Kind: an object, used in responses.

Every field is present in a response; empty ones are null.

FieldTypeDescription
errorstringWhat went wrong, in English.
categorystringThe kind of failure: always DocumentTextExtractionFailed.
ocrAttemptedbooleanWhether Maitento tried reading the file with OCR (text recognition) before giving up.
guidancestringWhat the person who uploaded the file can do about it, such as uploading a text-searchable PDF instead.
{
"error": "...",
"category": "...",
"ocrAttempted": false,
"guidance": "..."
}