This documentation is archived and is not being maintained.

HttpWorkerRequest.GetStatusDescription Method

Returns a string that describes the name of the specified HTTP status code.

[Visual Basic]
Public Shared Function GetStatusDescription( _
   ByVal code As Integer _
) As String
public static string GetStatusDescription(
 int code
public: static String* GetStatusDescription(
 int code
public static function GetStatusDescription(
   code : int
) : String;


The HTTP status code.

Return Value

The status description. For example, GetStatusDescription (404) returns Not Found.


Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

HttpWorkerRequest Class | HttpWorkerRequest Members | System.Web Namespace