code: public static HttpURLConnection getHttpConnectionWithAnyResponseCode(LibertyServer server, String path) throws IOException {
          int timeout = DEFAULT_TIMEOUT;
          URL url = createURL(server, path);
          HttpURLConnection con = getHttpConnection(url, timeout, HTTPRequestMethod.GET);
          Log.info(SecurityFatHttpUtils.class, "getHttpConnection", "Connecting to " + url.toExternalForm() + " expecting http response in " + timeout + " seconds.");
          con.connect();
          return con;
      }
docs: This method creates a connection to a webpage and then returns the connection, it doesn't care what the response code is.
  
  @param server
  The liberty server that is hosting the URL
  @param path
  The path to the URL with the output to test (excluding port and server information). For instance
  "/someContextRoot/servlet1"
  @return The connection to the http address