public int getRawStatusCode() throws IOException { try { return this.connection.getResponseCode(); } catch (IOException ex) { return handleIOException(ex); } }
public String getStatusText() throws IOException { try { return this.connection.getResponseMessage(); } catch (IOException ex) { return HttpStatus.valueOf(handleIOException(ex)).getReasonPhrase(); } }