This page is likely outdated (last edited on 25 Jun 2008). Visit the new documentation for updated content.
Config system.web customErrors
Use the customErrors attribute to configure how errors must be presented
An example of this <system.web> section is:
<customErrors mode="On|Off|RemoteOnly" defaultRedirect="somepage.aspx">
<error statusCode="400" redirect="error400.aspx" />
...
</customErrors>
mode specifies if this setting is enabled for every request (On), enabled for remote requests only (RemoteOnly) or disabled.
The default is RemoteOnly
defaultRedirect is the redirection sent when no explicit <error> exists for a given error status code.