System.Web.Configuration.CustomError.StatusCode Property

Gets or sets the HTTP error status code.

Syntax

[System.Configuration.ConfigurationProperty("statusCode", Options=System.Configuration.ConfigurationPropertyOptions.IsRequired | System.Configuration.ConfigurationPropertyOptions.IsKey)]
[System.Configuration.IntegerValidator(MinValue=100, MaxValue=999)]
public int StatusCode { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The HTTP status code is used by the ASP.NET infrastructure to redirect the application to the error page when a specific error occurs.

Note:

The custom error is issued only if it is caused by an entity handled by ASP.NET; otherwise, a standard error is issued.

Requirements

Namespace: System.Web.Configuration
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0