I did some testing with some sites (I will not mention this), and they return 200 code when pages are not found. Is it against any web development standard?
This is the code I use to see the URL return code:
System.out.println(new String("getRespCode=" + urlConnection.getResponseCode() + ", HttpURLConnection=" + HttpURLConnection.HTTP_OK + "\n"));
Any ideas?
source
share