code: private boolean isAuthorizationRequired(Response response) {
          if (response != null && response.getStatus() == 401) {
              ResponseImpl responseImpl = (ResponseImpl)response;
              String challengesHeader = responseImpl.getFirstHeader(AUTHENTICATE_HEADER_NAME);
  
              if (AUTHENTICATE_HEADER_VALUE.equalsIgnoreCase(challengesHeader)) {
                  return true;
              }
          }
  
          return false;
      }
docs: Checks server response for MFP 401 error. This kind of response should contain MFP authentication challenges.
  
  @param response Server response.
  @return <code>true</code> if the server response contains 401 status code along with MFP challenges.