isUnauthorized property

bool get isUnauthorized

Checks if the request was unauthorized (401).

Implementation

bool get isUnauthorized => statusCode == 401;