Create a new httpClient request, GET. In the onError callback ask for the http response code.
Purposely make the URL to send a 404 not found
IOS, simulator and device, you will get the 404 code, and any error handling will execute.
Android will fail on both simulator and device. Http code returned is -1. You will also see an httpclient error in the console.