I'm using

```
HttpPost httppost = new HttpPost(url);
httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs,"UTF-8"));

```

in order to send data to my webservice. How could I get the http response code (like 200, 404, 500, etc) ?

I'm not able to use `getResponseCode()` from `HttpURLConnection`