AngelHttpException.notAuthenticated constructor

AngelHttpException.notAuthenticated({
  1. String message = '401 Not Authenticated',
})

Throws a 401 Not Authenticated error.

Implementation

factory AngelHttpException.notAuthenticated(
        {String message = '401 Not Authenticated'}) =>
    AngelHttpException(null, message: message, statusCode: 401);