isAuthError property

bool get isAuthError

Check if this is an authentication error

Implementation

bool get isAuthError =>
    code == ResponseCode.UNAUTHORISED || code == ResponseCode.FORBIDDEN;