Table of Contents

Class Int32Extensions

Namespace
Cuemon.Extensions.AspNetCore.Http
Assembly
Cuemon.Extensions.AspNetCore.dll

Extension methods for the System.Int32 struct.

public static class Int32Extensions
Inheritance
Object
Int32Extensions

Methods

IsClientErrorStatusCode(Int32)

Determines whether the specified statusCode is within the client error related range.

public static bool IsClientErrorStatusCode(this int statusCode)

Parameters

statusCode Int32

The System.Int32 to extend.

Returns

Boolean

true if statusCode was in the Client Error range (400-499); otherwise, false.

IsInformationStatusCode(Int32)

Determines whether the specified statusCode is within the informational range.

public static bool IsInformationStatusCode(this int statusCode)

Parameters

statusCode Int32

The System.Int32 to extend.

Returns

Boolean

true if statusCode was in the Information range (100-199); otherwise, false.

IsNotModifiedStatusCode(Int32)

Determines whether the specified statusCode equals a 304 Not Modified.

public static bool IsNotModifiedStatusCode(this int statusCode)

Parameters

statusCode Int32

The System.Int32 to extend.

Returns

Boolean

true if statusCode is NotModified (304); otherwise, false.

IsRedirectionStatusCode(Int32)

Determines whether the specified statusCode is within the redirecting range.

public static bool IsRedirectionStatusCode(this int statusCode)

Parameters

statusCode Int32

The System.Int32 to extend.

Returns

Boolean

true if statusCode was in the Redirection range (300-399); otherwise, false.

IsServerErrorStatusCode(Int32)

Determines whether the specified statusCode is within the server error related range.

public static bool IsServerErrorStatusCode(this int statusCode)

Parameters

statusCode Int32

The System.Int32 to extend.

Returns

Boolean

true if statusCode was in the Server Error range (500-599); otherwise, false.

IsSuccessStatusCode(Int32)

Determines whether the specified statusCode is within the successful range.

public static bool IsSuccessStatusCode(this int statusCode)

Parameters

statusCode Int32

The System.Int32 to extend.

Returns

Boolean

true if statusCode was in the Successful range (200-299); otherwise, false.