IsServerErrorStatusCode Method
Definition
- Namespace
- Cuemon.AspNetCore.Http
- Assemblies
- Cuemon.AspNetCore.dll
IsServerErrorStatusCode(IDecorator<int>)
Determines whether the enclosed int of the decorator is within the server error related range.
public static bool IsServerErrorStatusCode(this IDecorator<int> decorator)
Parameters
decoratorIDecorator<int>The IDecorator<T> to extend.
Returns
- bool
trueif the enclosed int of thedecoratorwas in the Server Error range (500-599); otherwise,false.
Exceptions
- ArgumentNullException
decoratorcannot be null.