question: 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 ; }
target:  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).