Cyrus Stoller home about consulting

New HTTP status code for unsuitable browsers

Click here to toggle speed-enhancing color gradients.

It’s a pain to support old versions of Internet Explorer! How annoying is it? Even Google has dropped support for IE8 and then IE9. Unfortunately, many institutions like hospitals and government agencies have computer systems that still have not fully updated their technological infrastructure. Whenever I get feedback that a website I’ve made doesn’t work properly it’s usually from a user who is still running an old version of Internet Explorer. I feel like there should be a way to strongly encourage the upgrade process.

tl;dr I want a new HTTP Status Code (212) for Unsuitable Browsers

Some websites conditionally add a div instructing users to update their browser. I’m wondering whether to take this a step further by adding some middleware that will check if the User-Agent of incoming requests is ‘ancient’ and change the status code. The irony is not lost on me that these old browsers won’t do anything with this new status code, but I hope that this could help us avoid having another IE6 problem. This new code (212) would tell browsers that they need to instruct users to upgrade to get the best experience.

So, I was wondering if any of the current HTTP Status Codes are suitable? None of the 2xx codes indicate this information, but would probably be most appropriate since the request is processed successfully. So I started looking at the 4xx codes for inspiration. Here are the candidates I looked at:

Because 412 is essentially the opposite of what I’m looking for and because there does not currently appear to be a 212 status code, I think that we should adopt the following:

Maybe this could remind people to run updates regularly. If not, oh well. That just leaves us with status code 418: I am a teapot.

Note: Coloring via BeeLine Reader API. They also make browser plugins, which let you customize text and background colors to help you read faster. Check them out!

Category Idea