I am trying to use the method getResponseCode() with HttpURLConnection in a client.
I have setup my server to return a 404 - file not found when I hit a certain page on the server for
testing.
Thing is, the client code seems to be throwing a FileNotFound exception when I call the getResponseCode() method instead of returning a value.
I'm catching the exception, but this is not really what I want.
Any ideas? Did I forget to set something?
Thanks,
Drew