Module

isUnauthorized

Validate HTTP Status code 401 type CLIENT ERROR

Parameters:
Name Type Description
statusCode Integer

The HTTP Status code

View Source client-error/is-unauthorized.js, line 3

When the statusCode is different then 401

HTTPStatusError
Boolean