11:22 pm, August 13, 2009 -
Google Chrome: Default Reaction to 404 and Site Issues
When I write my own websites and frameworks, especially when they’re using rewritten URLs, I setup the sites to have their own 404 pages, so that people know that the site is there, but that there is a problem with the link they followed.
This just makes sense – since you can’t guarantee that incoming links are correct, and getting a generic 404 error page can make people think that you just don’t have a site at all – whereas seeing a branded error page, maybe with suggested places to find related content on your site, or at least some recourse to indicate a problem to a suitable site contact.
A History Lesson
Now, search engines, browsers and other agents, don’t understand page content, so having a framework simply replace the content with the ‘error’ message isn’t enough to let them know there’s a problem. For that, you should use HTTP response codes – which is where the ‘404‘ actually comes from as this is the numeric code sent to identify a ‘page not found’.
Many years ago (before the days IE6, if you can imagine such a dark age), many sites didn’t really setup these 404 pages (although, a significant proportion still don’t – but the majority do). Instead, rather poor and cryptic default error messages were sent from the web server, which would mean next to nothing to the average user.
So, back then, browser developers would replace almost anything sent from a server that wasn’t accompanied by a ‘good‘ response code with a ‘friendly’ message – usually on the lines of a more expansive message, and even a link to a search engine in some cases.
Most site and framework developers are now, and have been for some time, properly handling URL address and other errors, and the need for browsers to provide the ‘friendly’ message was pretty much removed.
Google Chrome – A little behind?
This, at least, has been my experience with the major browsers for the past few years – they don’t obfuscate what the server is doing.
Until Google Chrome came along, at least. It turns out that Google like their new browser to do what most others stopped doing years ago. On receiving the 404 code from the server, the browser’s default behaviour is to ignore any further content and replace it with Google generated suggestions and search form.
Now, I can see why Google would like this behaviour – any chance to channel someone through their search engine is a chance that someone will follow an advertised link, and then Google get money.
This default behaviour can be turned off from the browser’s options, but it isn’t exactly obvious what is happening nor is the option labelled clearly enough that I was not forced into a short round of ‘click and see if that works’. It is also quite naughty, I think, because there is no indication that a site/server actually responded and that its just a page not found.

Microsoft Live Search is dead – long live