isUnauthorized property

bool get isUnauthorized

Check if the response is unauthorized (401)

Implementation

bool get isUnauthorized => statusCode == 401;