I want to download a file and need to check the response status code (ie HTTP /1.1 200 OK). This is a snipped of my code:
HTTP /1.1 200 OK
HttpGet httpRequest =
This will return the int value:
int
response.getStatusLine().getStatusCode()
if (response.getStatusLine().getStatusCode()== HttpsURLConnection.HTTP_OK){ ... }