HttpStatusDescription class

Provides standard HTTP status descriptions. This class cannot be inherited.

internal static class HttpStatusDescription

Warning

This class is internal and is not meant to be used directly in your code.

Microsoft does not support the use of this class in a production application under any circumstance.

Get method

Returns the description associated with the specified HTTP status code.

internal static string Get(int code)

Parameters

code Int32

The HTTP status code, for example, 404.

Return value

System.String

The HTTP status description.

Requirements

Namespace: System.Net

Assembly: System (in System.dll)