Table of Contents

IsClientErrorStatusCode Method

Definition

IsClientErrorStatusCode(IDecorator<int>)

Determines whether the enclosed int of the decorator is within the client error related range.

public static bool IsClientErrorStatusCode(this IDecorator<int> decorator)

Parameters

decorator IDecorator<int>

The IDecorator<T> to extend.

Returns

bool

true if the enclosed int of the decorator was in the Client Error range (400-499); otherwise, false.

Exceptions

ArgumentNullException

decorator cannot be null.