I was doing some testing with some sites (that I will not mention), and they are returning 200 code when they are page not found pages. Is this against any web development standard?
This is the code that I am using to see the return code of a URL:
System.out.println(new String("getRespCode=" + urlConnection.getResponseCode() + ", HttpURLConnection=" + HttpURLConnection.HTTP_OK + "\n"));
Any ideas?
This is called a
Soft 404orFalse 404. Wikipedia has a detailled discussion. It is not allowed by any web standard (and I don’t know of any argument in favor), but so is invalid HTML.