Skip to main content

Organization error template

Part of the "Tenant administration" group. This section is for admins who manage multiple sub-organizations or many users. If you only use one domain, you can use per-domain Error Pages instead.

The Org Error Template (/settings/error-template) lets you set an error page template shared by the whole organization. It applies to every domain in your organization that does not have its own error page.

Use it when: you want all domains in your organization to show the same branded error page (for example a shared 403/404/503 page) without configuring each domain separately. Example: 20 domains in your organization use one consistent 404 template — set it once here.

Before you start​

  • An org_admin account with access to Settings → Error template.
  • At least 1 domain in the organization (so the template has somewhere to apply).

How to configure​

  1. Go to Settings → Error template (/settings/error-template). Go to Settings → Error template (/settings/error-template)
  2. Write one shared HTML template for the whole organization (it applies to all 4xx/5xx errors).
  3. Click Save (PUT) to apply it to the whole organization.
  4. (Optional) Click Delete (DELETE) to remove the organization template and return to the system default.

Corresponding API: GET | PUT | DELETE /orgs/{orgId}/error-template.

Configuration fields​

How the Org Error Template works: it is a single shared HTML template (not defined per error code) that applies to all 4xx/5xx errors for domains in the organization that do not have their own error page. Each template is limited to 32 KiB (exceeding it → 400 on save).

FieldMeaningValuesNotes
EnabledEnable the organization error templateOn/off—
HTML templateShared HTML content for all errorsAn HTML stringApplies to all 4xx/5xx errors; up to 32 KiB per template (exceeding it → 400)
Tokens in the HTMLVariables replaced when the page is rendered{code}, {reason}, {source}, {detail}, {request_id}, {client_ip}, {node}, {time}Exactly these 8 tokens; all are HTML-escaped automatically (XSS protection). There are no other tokens (for example, no {host}/{url})

Configuration examples​

Example — one branded error template shared by the whole organization.

<!doctype html>
<h1>{code} — {reason}</h1>
<p>Sorry, something went wrong. Our team is working on it.</p>
<small>Request ID: {request_id} · Node: {node} · {time}</small>
  • This template applies to all 4xx/5xx errors for every domain in the organization that does not have its own error page (up to 32 KiB).
  • The 8 tokens ({code}, {reason}, {source}, {detail}, {request_id}, {client_ip}, {node}, {time}) are replaced and escaped automatically when the page is rendered.
  • Remember: Error Pages set on an individual domain still take precedence over the organization template; the organization template ranks above the global template.

Order of evaluation​

  • Error pages are applied in this order of priority: the domain's own Error Pages → Org Error Template → global system template → built-in default page.
  • The Org Error Template ranks above the global template (it takes priority over global), but Error Pages set on an individual domain still take precedence over the organization template.
  • The organization template only applies when the domain has no error page of its own for that specific error code (a domain's Error Pages are evaluated per code: if a domain only sets a 404 page, a 503 error still uses the organization template; if the domain's Error Pages are disabled, the organization template applies to every code).
  • The template is only shown to browser clients (requests that accept HTML content); APIs and bots receive a short default page. For errors from the origin, the template only replaces the response when the origin returns an empty body.

Troubleshooting​

SymptomCauseFix
A domain does not show the organization templateThat domain already has its own Error Pages (enabled) for that error code (higher priority)Remove the domain's own error page, or accept that the domain uses its own template
Cannot saveThe HTML template is empty while enabled, or the template exceeds 32 KiBEnter HTML content; shorten the template to under 32 KiB (both cases return 400)
Want to go back to the defaultThe old organization template is still setClick Delete (DELETE) to remove the organization template

FAQ​

  • Which domains does this template apply to? Every domain in your organization that does not have its own error page.
  • What about domains that already have their own Error Pages? The domain's own error page takes precedence over the organization template.
  • Does deleting the organization template affect per-domain error pages? No — it only removes the shared organization-level template; per-domain error pages stay as they are.
  • Do sub-organizations use the parent organization's template? No — each domain only uses the template of the organization that directly owns it; templates are not inherited down the organization tree. A sub-organization without its own template uses the global/default template.
  • Do 429 (too many requests) errors use the organization template? No — the 429 page generated by Rate Limit uses its own page; the Org Error Template does not apply.