Table of Contents

IsClientErrorStatusCode Method

Definition

Namespace
Cuemon.Extensions.Net
Assemblies
Cuemon.Extensions.Net.dll
Source
src/Cuemon.Extensions.Net/HttpStatusCodeExtensions.cs

IsClientErrorStatusCode(HttpStatusCode)

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

public static bool IsClientErrorStatusCode(this HttpStatusCode statusCode)

Parameters

statusCode HttpStatusCode

The HttpStatusCode to evaluate.

Returns

bool

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