private boolean isAvailable(HttpResult responseResult){
  boolean result;
  if ((responseResult.responseCode >= 200 && responseResult.responseCode < 400) || responseResult.responseCode == 401 || responseResult.responseCode == 403) {
    result=true;
  }
 else {
    result=false;
  }
  return result;
}

private boolean isAvailable ( HttpResult responseResult ) { boolean result ; if ( ( responseResult . responseCode >= 200 && responseResult . responseCode < 400 ) || responseResult . responseCode == 401 || responseResult . responseCode == 403 ) { result = true ; } else { result = false ; } return result ; }
tests whether an http ( s ) return code corresponds to a valid connection to the test url or not . success is 2xx ( successful ) , 3xx ( redirection ) , 401 ( unauthorized ) or 403 ( forbidden ) .
