isErrorCode method

bool isErrorCode(
  1. int statusCode
)

Returns whether the given status code should be handled as a error code, thus indicating, that the session is invalid and should be renewed.

Implementation

bool isErrorCode(int statusCode) => statusCode == 401 || statusCode == 500;