nat4200 wrote:
sliqua-jcooter wrote:
The page is displayed with a 200 response code to avoid the browser "taking over" with their own error message - every other service does the same thing (twitter is a good example). Having said that, the choice in software to run the site has nothing to do with me.
In this regard, I am afraid I must argue that you are mistaken. Twitter does not do that, nor do the majority of other sites.
The sources I can find say Twitter's famous "Fail Whale" error page is served with the appropriate HTTP response codes (eg. 503).
More easily reproducible (I'm not going to try and get a 503 from Twitter) is a 404 response. Try visiting a Twitter page that shouldn't exist, I used:
http://twitter.com/jfgwrhfbekavbksbtklsrtbg Note the friendly Twitter "Sorry, that page doesn’t exist!" page, now check the HTTP response code that page was served to you with. You should see that Twitter does indeed serve their "Sorry, that page doesn’t exist!" page with a 404 response code.
If you are concerned about Internet Explorer and its enabled-by-default "Friendly HTTP Error Pages" feature replacing your custom error pages, you should know that it will only do so if the error page you serve back to the browser is very short; short as in less then 512 bytes
First of all, you seem to have missed the part where I said "
the choice in software to run the site has nothing to do with me".
However, I wasn't referring to the IE 6.x-9.x "friendly" status code pages, I was referring to the early 5.x (which was later changed) policy to *always* overwrite a 500 error. When the software that powers this site was written, that was a "standard" practice implemented by the worlds most popular web browser (by far).
You can see that every other error code is exposed correctly:
Quote:
[jcooter@mnemosyne ~]$ curl -v
http://www.wrongplanet.net/woeruyhasdhfadg* About to connect() to
www.wrongplanet.net port 80 (#0)
* Trying 67.217.166.186... connected
* Connected to
www.wrongplanet.net (67.217.166.186) port 80 (#0)
> GET /woeruyhasdhfadg HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-unknown-linux-gnu) libcurl/7.19.7 NSS/3.12.6.2 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
> Host:
www.wrongplanet.net> Accept: */*
>
< HTTP/1.1 404 Not Found
< Date: Wed, 14 Mar 2012 14:56:26 GMT
< Server: Sliqua Server Environment
< Status: 404 Not Found
< Vary: Accept-Encoding
< Content-Length: 325
< Connection: close
< Content-Type: text/html; charset=ISO-8859-1
Quote:
[jcooter@mnemosyne ~]$ curl -v wrongplanet.net
* About to connect() to wrongplanet.net port 80 (#0)
* Trying 67.217.166.186... connected
* Connected to wrongplanet.net (67.217.166.186) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-unknown-linux-gnu) libcurl/7.19.7 NSS/3.12.6.2 zlib/1.2.3 libidn/1.18 libssh2/1.2.2
> Host: wrongplanet.net
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Date: Wed, 14 Mar 2012 14:57:31 GMT
< Server: Sliqua Server Environment
< Location:
http://www.wrongplanet.net/< Vary: Accept-Encoding
< Content-Length: 235
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
<