Table of Contents

IsSuccessStatusCode Method

Definition

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

IsSuccessStatusCode(HttpStatusCode)

Determines whether the specified statusCode is within the successful range.

public static bool IsSuccessStatusCode(this HttpStatusCode statusCode)

Parameters

statusCode HttpStatusCode

The HttpStatusCode to evaluate.

Returns

bool

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