Obtaining more information from an HttpException

ASP.NET throws HttpException for numerous types of errors, making it difficult to determine exactly what went wrong programmatically. You can parse the error message, but the message can be localized, and therefore parsing it can be non-trivial.  There is, however, a way that you can identify a few specific types of errors. In v2.0 there is an internal property on…

1