Class HttpStatusCodeExtensions
Extension methods for the System.Net.HttpStatusCode enum.
Inheritance
Namespace: Cuemon.Net
Assembly: Cuemon.Net.dll
Syntax
public static class HttpStatusCodeExtensions
Methods
| Improve this DocIsClientErrorStatusCode(HttpStatusCode)
Determines whether the specified statusCode
is within the client error related range.
Declaration
public static bool IsClientErrorStatusCode(this HttpStatusCode statusCode)
Parameters
Type | Name | Description |
---|---|---|
System.Net.HttpStatusCode | statusCode | The System.Net.HttpStatusCode to evaluate. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsInformationStatusCode(HttpStatusCode)
Determines whether the specified statusCode
is within the informational range.
Declaration
public static bool IsInformationStatusCode(this HttpStatusCode statusCode)
Parameters
Type | Name | Description |
---|---|---|
System.Net.HttpStatusCode | statusCode | The System.Net.HttpStatusCode to evaluate. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsRedirectionStatusCode(HttpStatusCode)
Determines whether the specified statusCode
is within the redirecting range.
Declaration
public static bool IsRedirectionStatusCode(this HttpStatusCode statusCode)
Parameters
Type | Name | Description |
---|---|---|
System.Net.HttpStatusCode | statusCode | The System.Net.HttpStatusCode to evaluate. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsServerErrorStatusCode(HttpStatusCode)
Determines whether the specified statusCode
is within the server error related range.
Declaration
public static bool IsServerErrorStatusCode(this HttpStatusCode statusCode)
Parameters
Type | Name | Description |
---|---|---|
System.Net.HttpStatusCode | statusCode | The System.Net.HttpStatusCode to evaluate. |
Returns
Type | Description |
---|---|
System.Boolean |
|
IsSuccessStatusCode(HttpStatusCode)
Determines whether the specified statusCode
is within the successful range.
Declaration
public static bool IsSuccessStatusCode(this HttpStatusCode statusCode)
Parameters
Type | Name | Description |
---|---|---|
System.Net.HttpStatusCode | statusCode | The System.Net.HttpStatusCode to evaluate. |
Returns
Type | Description |
---|---|
System.Boolean |
|