code: public boolean isAuthorizationRequired(int statusCode, Map<String, List<String>> headers) {
  
          if (headers.containsKey(WWW_AUTHENTICATE_HEADER_NAME)){
              String authHeader = headers.get(WWW_AUTHENTICATE_HEADER_NAME).get(0);
              return AuthorizationHeaderHelper.isAuthorizationRequired(statusCode, authHeader);
          } else {
              return false;
          }
      }
docs: Check if the params came from response that requires authorization
  @param statusCode of the response
  @param headers response headers
  @return true if status is 401 or 403 and The value of the header contains 'Bearer'