Custom Pages
Replace the error responses your origin returns with pages of your own, one page per status code, served through a Workload's deployment.
Custom Pages is a Platform Resource that replaces the error response a Connector returns with a page of your own, on Azion’s distributed infrastructure. A custom error page is a document a site serves in place of a server’s default error response for one status code, such as 404. Use Custom Pages to show your own page for a missing resource or a timed-out origin, set its cache time, or change its status code. Also use Custom page settings to look up the fields of a set, its pages, and the status codes a page replaces.
Request path
Creating a custom page set changes no response: a Workload uses a custom page set only once that Workload’s deployment sets that custom page set.
This diagram follows a response from the Connector’s status code to what the client receives. Solid arrows carry requests, and dotted arrows carry responses. Each label starts with the number of the step it belongs to.
- The Workload forwards the request to the Application that its deployment sets. The Application sends the request to the origin through a Connector, and the Connector answers with a status code.
- Azion looks for a page with that code in the custom page set that the deployment sets. When the set has no page for the code, the client receives the Connector’s response unchanged, except for the status codes
400,401,403,406,500,502,503, and504, which receive Azion’s default error page. - When a page matches, Azion fetches its content from the page’s Connector at the page’s
uri. The page’sttlsets its cache time. - The client receives that content in place, with no redirect and no
Locationheader. The status is the page’scustom_status_code, when one is set.