System.Web Namespace HttpException Class
Returns the HTTP error code to send back to the client. If there is a nonzero HTTP code, it is returned. Otherwise, the InnerException code is returned. If neither an InnerException code nor a nonzero HTTP code is available, the HTTP error code 500 is returned.
[ VB ]
Public Function GetHttpCode ( ) As Integer
[ C# ]
public int GetHttpCode ( );
[ C++ ]
public: int GetHttpCode ( );
[ JScript ]
public function GetHttpCode ( ) : int;
The HTTP code representing the exception.
HttpException Members