Skip to content

Error codes

The REST API answers business errors with a body of this form:

{ "error": "Access denied.", "code": "access-denied" }

code is stable and language-independent — integrations should check that field alone. error is localised (9 languages, following Accept-Language; the default is German). Validation errors on input data arrive differently, as standard ProblemDetails (HTTP 400 with an errors dictionary).

Code HTTP Meaning
tenant-not-found 400 The tenant (code or host) does not exist
access-denied 403 Missing permission (deliberately generic)
superadmin-required 403 The endpoint requires superadmin rights
superadmin-only 403 Only superadmins may change this setting
login-not-allowed 401 Sign-in is not permitted for this tenant
no-file 400 No file was submitted
name-required 400 A name is required
password-policy 400 The password violates the password policy (the text names the rule)
key-not-editable 400 The settings key cannot be changed through the API
slug-reserved 400 The tenant code is reserved (for demo mode, for instance)
unknown-mode 400 Unknown download mode (permitted: original, pdf-original, pdf-modified, original-modified)
rate-limited 429 Rate limiting — the message states the waiting time
Code Meaning
download-not-permitted The role’s download level is “no download”
download-redacted-only Only an edited (redacted) download is permitted
download-original-format-unavailable The original format is not available with this permission (the “PDF only” level)
Code Meaning
license_missing No licence is stored — the tenant is blocked (only sign-in, sign-out and the licence page remain reachable)
license_invalid The licence signature is invalid or the licence string is damaged
license_wrong_hardware The licence belongs to different hardware or a different tenant
license_expired The licence has expired
license_user_limit Creating or reactivating a user would exceed the licensed number of users
license_page_quota The page quota is exhausted — new usable versions are refused (uploads and downloads of originals remain possible)
feature_not_licensed The feature (redaction or pseudonymisation) is not licensed

In a bulk upload (POST /api/documents/bulk) a single error does not abort the run; the response lists the files affected under failed[] with a reason:

reason Meaning
read-failed The file could not be read
magic-byte-mismatch The file content does not match the file extension
office-sanitizer Rejected by the Office check (see below)
create-failed Creating the document failed

Reasons given by the Office check (an excerpt of the messages): “Document contains macros.” (always rejected) · “Document contains external references or OLE objects.” (only if the project does not permit them) · “Archive has too many entries.” · “Disallowed path in the archive.” · “Decompressed size exceeds the limit.” · “Compression ratio suspiciously high.” (protection against zip bombs).

Export, analysis and re-identification jobs report errors through an errorCode field. The message text is localised — only the code is stable:

errorCode Message
Api.Error.Job.TenantNotLicensed “No valid licence exists for this tenant.”
Api.Error.Job.FeatureNotLicensed “This feature is not included in your licence.”
Api.Error.Job.LicensePageQuota “Your licence’s page quota is used up: …”
Api.Error.Job.NoDocumentsExported “No documents exported (… skipped, … failed).”
Api.Error.Job.ExportFailed / …WithDetails “Export failed(: …)”
Api.Error.Job.Interrupted… “Interrupted by a service restart — please start … again.”
Api.Error.Reidentify.FormatUnsupported “Format ‘…’ is not supported for re-identification. …”
Api.Error.Reidentify.NoAliasesFound “No aliases from the dictionary were found in the uploaded PDF.”
Api.Error.Reidentify.MappingFileEmpty “The mapping file contains no valid original/pseudonym pairs.”

Every document version runs through Pending → Processing → Completed, or ends in Failed. On Failed, the processingError field names the cause (an English text). Two values are stable and are handled specially by the interface:

Text Meaning
Document is password-protected A password-protected document — supply the password through the error list in the project view
Document password is incorrect The password given is wrong

200/201/204 success · 400 invalid input · 401 authentication missing or invalid · 403 no permission · 404 not found · 409 conflict (a code already taken, for example) · 413 file too large · 415 file type or content not permitted · 422 rejected on content grounds (captcha, Office check) · 423 the document is checked out by another user · 429 rate limiting.

Last updated: