Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The HttpException class provides a container for communicating error information from various classes used in ASP.NET. The Page, HttpRequest, HttpResponse, HttpServerUtility, and other classes all use the HttpException class to communicate information about errors that occur when calling their methods or properties.
The HttpException class is derived from the Exception class, the base class for all exceptions in the .NET Framework. HttpException adds two methods, GetHtmlErrorMessage and GetHttpCode, as well as other constructor overloads that create HttpException instances based on HTTP error codes.