IsClientErrorStatusCode Method
Definition
- Namespace
- Cuemon.AspNetCore.Http
- Assemblies
- Cuemon.AspNetCore.dll
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
decoratorIDecorator<int>The IDecorator<T> to extend.
Returns
- bool
trueif the enclosed int of thedecoratorwas in the Client Error range (400-499); otherwise,false.
Exceptions
- ArgumentNullException
decoratorcannot be null.