How to customize an error response page

Find out how to configure your Azion edge application to show custom error pages for your user based on HTTP error statuses. For this guide you must already have an Edge Application, an Edge Connector and a Workload already setup.

There are separate instructions for API v3 using legacy Error Responses settings and API v4 using the new Custom Pages product.

To create a Custom Page, follow the steps:

  1. Access Azion Console > Custom Pages.
  2. Click on the + Custom Page button.
  3. To customize specific error codes, click on the + Custom Page Code button.
  4. Select the Page Code. This represents the code recieved from the Edge Connector when fetching your content.
  5. Select the Edge Connector.
  6. In the Page Path field, you can add a path to an error page created in your origin.
  7. Change the cache TTL in the Response TTL field.
  8. In the Response Custom Status Code field, you can customize the HTTP status that will be received by the user.
  9. Click the Save button.

Now to bind your Error Pages to your Workload, follow the steps:

  1. Access Azion Console > Workloads.
  2. In the Deployment Settings section, select the Custom Page you created.
  3. Click the Save button.

Done. Your edge application will now display an error page with the new configuration.