Table of Contents

IsServerErrorStatusCode Method

Definition

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

IsServerErrorStatusCode(HttpStatusCode)

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

public static bool IsServerErrorStatusCode(this HttpStatusCode statusCode)

Parameters

statusCode HttpStatusCode

The HttpStatusCode to evaluate.

Returns

bool

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