Error Pages
Learn how to upload custom HTML error pages and assign them to hostnames on your Umbraco Cloud project.
The Error Pages feature lets you serve a custom HTML page to visitors when your site is unavailable due to platform operations. You can assign custom pages to all your hostnames.
Error pages are shown when an environment is restarting. Most deployments require a restart, during which visitors may briefly see the error page.
Error pages are also shown while an environment is stopped. When you stop an environment, visitors see the error page assigned to the hostname until you start the environment again. This makes it possible to show a custom maintenance page during planned maintenance. For more information, see the Start and stop environments section.
On supported versions, Umbraco Cloud keeps showing the error page until your site reports that it is ready. See the Readiness Gating article for details.
To handle error pages when the website is running, see the Umbraco CMS tutorial: Custom Error Pages.
You manage the feature from two tabs: Managing Error Pages and Hostname Assignments.
Managing Error Pages
The Managing Error Pages tab lists all uploaded custom HTML pages and the built-in Umbraco Cloud Default. The Hostnames row shows a count of how many hostnames are currently assigned to that page.


Upload a page
Click Upload Error Page.
Enter a name for the page.
Enter an optional description.
Select an
.htmlor.htmfile (max 20 KB).Click Upload to confirm.

Default
Select one of the radio buttons next to any uploaded page. That page becomes the fallback for all new hostnames. The active default is selected in the Default column.
Modify
Click on any uploaded page to open the detail dialog. The dialog has three tabs:
Preview: Shows the HTML content as formatted code.
Edit: Update the display name and description without touching the file.
Replace: Upload a new file version. Hostnames already assigned to this page continue using it after the replacement — no reassignment needed.
Assign
Click Assign to open the assign dialog and bulk-assign that error page to one or more hostnames.
Delete
Click the delete icon on a row to remove the page. If the page was assigned to any hostnames, those hostnames revert to the Umbraco Cloud error page.
Hostname Assignments
The Hostname Assignments tab shows every hostname across all environments and which error page it currently uses.

Filter the list
Use the column header dropdowns to filter by:
Environment: Show only hostnames from a specific environment.
Error Page: Show only hostnames using a specific page, or those using the default.
Domain: Filter by registrable domain (for example,
mysite.co.uk).Top-level domain (TLD): Filter by top-level domain (for example,
.co.uk).
Click Reset filters to clear all active filters.
Assign to a single hostname
Click the assign icon on a hostname row, select a page from the dropdown, and confirm.
Bulk assign
Check the checkboxes next to the hostnames you want to update.
Use Select all to pick all hostnames currently shown.
Click Assign.
Choose a page from the dropdown and confirm.
Revert to default
In the assign dialog, select Use default (remove custom assignment). The hostname falls back to the Umbraco Cloud error page.
Error Page Authoring Guidelines
Keep these requirements in mind when building a custom error page:
Max file size: 20 KB (HTML, CSS, and JS combined).
Only
.htmlor.htmfiles are accepted.Error pages must be self-contained — no external resources (see below).
Why self-contained? Cloudflare serves your error page directly from blob storage. When your site is unavailable, external fonts, stylesheets, and scripts (Google Fonts, CDN libraries, and so on) are likely to fail too. Without those resources, the error page appears broken or unstyled. Everything must be in line.
Inline all CSS in a
<style>block.Inline all JavaScript in a
<script>block.Use system fonts instead of web fonts:
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif.Inline any icons as SVG markup rather than loading an icon library.
Recommended meta tags
The robots tag prevents search engines from indexing your error page. The Cache-Control tag prevents browsers from caching the error page, so visitors get a fresh load once your site recovers.
Reload mechanism
Tell visitors what is happening and give them a way back.
Auto-poll (recommended): Use JavaScript to periodically send a HEAD request to the current URL and reload automatically when the site responds with 200. Use exponential back-off with jitter to avoid hammering the server, and show a manual refresh button after a set number of failed attempts:
Fallback: Always include a manual "Refresh page" button for visitors without JavaScript, or once polling is exhausted:
Complete template
The following is a self-contained starting point that combines all the guidelines above. Adjust the heading, message, and styles to suit your site.
Last updated
Was this helpful?