Use HttpResponse.getStatusLine(), which returns a StatusLine object containing the status code, protocol version and “reason”.
Use HttpResponse.getStatusLine(), which returns a StatusLine object containing the status code, protocol version and “reason”.