Use this page to work out what an error means and what to change. Errors are JSON on every route, apart from the few answers listed under responses that are not JSON.
"message": "invalid request: unknown step 'teleport'; file-carrying steps (watermark, stamp, embed, factur-x) take their own fields"
}
Field
Meaning
error
A code your program can match on
message
What went wrong, for a person. Do not match on this text
Every response carries x-request-id. Send your own X-Request-Id to set it. Log it: the service logs the full error under the same id.
A request’s own mistakes say what they were. A 5xx reads as the status’s name, such as Internal Server Error, and the detail is only in the log. That keeps engine output and temp paths out of responses. So for a 5xx, look in the log under the request id.
The request is wrong: a missing file, an unknown step, a bad option, invalid JSON, a file that is not a PDF, a bad webhook URL, a conversion past RUSTICDOC_LIBREOFFICE_MAX_DISK. Also a form over RUSTICDOC_BODY_LIMIT, with multipart form: Request payload is too large
This route changes fonts, and the caller is not an admin
Send one of RUSTICDOC_ADMIN_KEYS, or make the caller an admin with RUSTICDOC_BASIC_AUTH_ADMIN, RUSTICDOC_OIDC_ADMIN_SUBJECTS or RUSTICDOC_OIDC_ADMIN_CLAIM. See authentication
quota_exceeded
Stored templates or fonts are at a limit
Delete some, or raise RUSTICDOC_MAX_TEMPLATES, RUSTICDOC_MAX_TEMPLATE_STORAGE, RUSTICDOC_MAX_STORED_FONTS or RUSTICDOC_MAX_FONT_STORAGE
url_not_allowed
A webhook or downloadFrom URL fails an allow or deny list
Change the URL, or the lists in RUSTICDOC_WEBHOOK_ALLOW_LIST, RUSTICDOC_WEBHOOK_DENY_LIST, RUSTICDOC_DOWNLOAD_FROM_ALLOW_LIST or RUSTICDOC_DOWNLOAD_FROM_DENY_LIST
A template to store is over RUSTICDOC_MAX_TEMPLATE_BYTES
Make it smaller, or raise the limit
reported
A template, or an HTML page being laid out, needed more memory than one render may use, with the message The document needs more memory than one render may use.
Reduce the data or the page, or raise RUSTICDOC_RENDER_MEMORY
The template has a syntax error, uses an undefined value or an unknown filter, or a filter refused a value. The message names the tag and, in Office files, where it sits
With a webhook, a failure during the job goes to your URL as JSON, with the same error and message, plus status and requestId. See webhooks. Mistakes in the form are still answered at once.