Method GetStatusCodeDescription
GetStatusCodeDescription(int)
Gets the description of the specified HTTP status code.
public static string GetStatusCodeDescription(int statusCode)
Parameters
statusCode
intThe HTTP status code.
Returns
- string
The description of the HTTP status code.
GetStatusCodeDescription(HttpStatusCode)
Gets the description of the specified HTTP status code.
public static string GetStatusCodeDescription(HttpStatusCode statusCode)
Parameters
statusCode
HttpStatusCodeThe HttpStatusCode value.
Returns
- string
The description of the HTTP status code.