Reverberations

News, Views, Rants and Raves About Technology and More

Not showing ‘friendly’ HTTP error messages

leave a comment »

Ever wondered how Internet Explorer shows the same “The page cannot be found” when it doesn’t find the requested page, while Firefox doesn’t. I found this little comment in one source page.

<--
- Unfortunately, Microsoft has added a clever new
- "feature" to Internet Explorer. If the text of
- an error's message is "too small", specifically
- less than 512 bytes, Internet Explorer returns
- its own error message. You can turn that off,
- but it's pretty tricky to find switch called
- "smart error messages". That means, of course,
- that short error messages are censored by default.
- IIS always returns error messages that are long
- enough to make Internet Explorer happy. The
- workaround is pretty simple: pad the error
- message with a big comment like this to push it
- over the five hundred and twelve bytes minimum.
- Of course, that's exactly what you're reading
- right now.
-->

Apparently, IE comes configured to “Show friendly HTTP error messages” which replace the server’s normal error messages. Nothing profound about it, just a little eureka.

Written by Brajesh

March 24, 2006 at 3:42 pm

Posted in Coding, humour

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: