I was expecting this code to return a 404, however it produces the output :
\"Response code is 200\"
Would it be possible to learn how to differentiate between e
Ideally you should be getting this error:
java.net.UnknownHostException: www.thisurldoesnotexist
But it looks like your URL is resolved by you DNS provider.
For instance on my company's network running your code with URI "http://profile/" displays the employee profile.
Please also check etc.home file if you are on windows to check if any settings have been changed.