Code example for HttpURLConnection

Methods: getResponseMessage

0
    public int getStatusCode() throws IOException { 
        return connection.getResponseCode();
    } 
 
    public String getReasonPhrase() throws Exception {
        return connection.getResponseMessage();
    } 
 
    public Object unwrap() {
        return connection;
    } 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE