isAuthenticationError property

bool get isAuthenticationError

Checks if the status code represents an authentication error

Implementation

bool get isAuthenticationError => this == 401 || this == 403;