For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom Error Page

Redirect users to custom pages when specific edge-generated HTTP error responses occur.

Redirect users to a custom URL when specific edge-generated HTTP error responses occur.

Error Page allows you to define custom redirect behavior for edge-generated 4xx and 5xx responses. Each configuration maps an HTTP status code to an Error Page URL and specifies whether the redirect is permanent or temporary.

Error Page applies to error responses generated by the CDN edge. Error responses returned directly by your origin are not affected.

Error Page is configured per CDN Resource in the Medianova Control Panel under Page Rules.

Configure Error Page

1

Enable Error Page

Open your CDN Resource and select Page Rules.

Enable Enable Error Page.

2

Create an Error Page

Select Create Error Page.

The Create Error Page panel opens.

3

Configure the HTTP Status Code

Enter the HTTP Status Code that should trigger the redirect.

Set the configuration to Active or Inactive.

4

Enter the Error Page URL

Enter the destination in Error Page URL.

For example:

https://example.com/errors/404.html

The browser is redirected to this URL when the CDN generates the configured error response.

5

Select the Redirect Type

Select the redirect returned to the browser:

  • 301 Permanent — Indicates that the redirect is permanent.

  • 302 Temporary — Indicates that the redirect is temporary.

6

Create the Error Page

Select Create to add the Error Page configuration.

Configuration Options

Option
Description

HTTP Status Code

Defines the edge-generated HTTP error response that triggers the redirect.

Active / Inactive

Determines whether the Error Page configuration is applied.

Error Page URL

Defines the URL to which the browser is redirected.

301 Permanent

Returns a permanent redirect to the configured Error Page URL.

302 Temporary

Returns a temporary redirect to the configured Error Page URL.

How Error Page Works

When an active Error Page configuration matches an edge-generated error response:

  1. The CDN generates the configured 4xx or 5xx response.

  2. The Error Page configuration matches the HTTP status code.

  3. The CDN returns the configured 301 or 302 redirect.

  4. The browser follows the redirect to the configured Error Page URL.

Multiple Error Page configurations can be created to handle different HTTP status codes.

Important Notes

  • Error Page applies to edge-generated 4xx and 5xx responses.

  • Origin-generated error responses are not affected.

  • Use 302 Temporary when the redirect should not be cached as a permanent redirect.

  • Ensure that the configured Error Page URL remains accessible.

  • Avoid configurations that could redirect the Error Page URL back to itself.

Last updated

Was this helpful?