isUnauthorized property

bool get isUnauthorized

Is this a 401 Unauthorized error?

Implementation

bool get isUnauthorized => statusCode == 401;