Table of Contents

IsSuccessStatusCode Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Http
Assemblies
Cuemon.Extensions.AspNetCore.dll
Source
src/Cuemon.Extensions.AspNetCore/Http/Int32Extensions.cs

IsSuccessStatusCode(int)

Determines whether the specified statusCode is within the successful range.

public static bool IsSuccessStatusCode(this int statusCode)

Parameters

statusCode int

The int to extend.

Returns

bool

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