Share via


ErrorPage interface

A custom error page for a specific status returned by a web app.

Properties

alwaysUse

If true, the error page will be shown for all requests with a matching status code, regardless of whether they failed on the App Service FrontEnd load balancer or on the app itself.

content

The content of the error page. There is a 10kb limit imposed on custom error page content.

contentType

The content type of the error page. For example, 'text/html'

statusCode

The status code for which the error page will be used

Property Details

alwaysUse

If true, the error page will be shown for all requests with a matching status code, regardless of whether they failed on the App Service FrontEnd load balancer or on the app itself.

alwaysUse?: boolean

Property Value

boolean

content

The content of the error page. There is a 10kb limit imposed on custom error page content.

content?: string

Property Value

string

contentType

The content type of the error page. For example, 'text/html'

contentType?: string

Property Value

string

statusCode

The status code for which the error page will be used

statusCode?: number

Property Value

number