isUnauthorized property

bool get isUnauthorized

Whether the status code represents a 401 Unauthorized authentication failure.

Implementation

bool get isUnauthorized => statusCode == 401;