Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8255085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:24:39+00:00 2026-06-08T01:24:39+00:00

I want to display a custom error page: <!doctype html> <html> <head><title>400 Bad Request</title></head>

  • 0

I want to display a custom error page:

<!doctype html>
<html>
<head><title>400 Bad Request</title></head>
<body><h1>400 Bad Request</h1>
The grob must be in the frobber.
</body>
</html>

Unfortunately, Internet Explorer ignores the response sent by the HTTP server; hiding my page and showing their own:

Generic "This webpage cannot be found" IE error message

How can I convince Internet Explorer to show the page the user was sent?

Edit Chrome began doing the same thing in 2008. People have asked for it to be fixed; but it’s marked as won’t fix.

And you can fix it using the same trick in the answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:24:40+00:00Added an answer on June 8, 2026 at 1:24 am

    The solution is PADDING.

    Microsoft notes in knowledge base article KB294807:

    HOW TO: Turn Off the Internet Explorer 5.x and 6.x “Show Friendly HTTP Error Messages” Feature on the Server Side

    …these “friendly” error messages are only displayed if the response that is sent to the client is less than or equal to a specified threshold. For example, to see the exact text of an HTTP 500 response, the content length must be greater than 512 bytes.

    Implement this padding. To do this, use the VBScript String function to return a string of the same character, which is one more than the ErrorThreshold that Internet Explorer 5.x uses to display the friendly error message. For example, add the following line immediately before the tag of 500-100.asp:

     <% Response.Write String(513, "_") %>
    

    Make it bigger

    So i bulk up response page to:

    <!doctype html>
    <html>
    <head><title>400 Bad Request</title></head>
    <body><h1>400 Bad Request</h1>
    The grob must be in the frobber.
    
    <!--       
        512 bytes of padding to suppress Internet Explorer's "Friendly error messages"
    
        From: HOW TO: Turn Off the Internet Explorer 5.x and 6.x "Show Friendly HTTP Error Messages" Feature on the Server Side
              http://support.microsoft.com/kb/294807
    
        Several frequently-seen status codes have "friendly" error messages 
        that Internet Explorer 5.x displays and that effectively mask the 
        actual text message that the server sends.
        However, these \"friendly\" error messages are only displayed if the 
        response that is sent to the client is less than or equal to a 
        specified threshold.
        For example, to see the exact text of an HTTP 500 response, 
        the content length must be greater than 512 bytes.
      -->
    </body>
    </html>
    

    Problem solved.

    Bonus Reading

    • MSDN Blog – IE Internals – Friendly HTTP Error Pages

    What makes IE decide to show a friendly error page?

    The answer is that the server’s response must meet two criteria:

    • The HTTP Status code must be [400, 403, 404, 405, 406, 408, 409, 410, 500, 501, 505]
    • The HTTP Response body’s byte length must be shorter than a threshold value

    The byte length thresholds are stored in the registry in HKEY_LOCAL_MACHINE under the subkey \SOFTWARE\Microsoft\Internet Explorer\Main\ErrorThresholds.

    • [403, 405, 410]: 256 bytes
    • [400, 404, 406, 408, 409, 500, 501, 505]: 512 bytes
    • otherwise: 512 bytes
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My main issue is that I want to display an custom error page when
As the title suggests, I just want to display a standard windows error icon
What I want I want to display a custom live tile in WP7.5, a
I have a component where i want to display a custom jtooltip. That is
I am using Qt, what I want to do is to display custom popup
I have a custom error script that displays custom error messages on a page
I am trying to serve a custom error page in an MVC2 app, which
I want to design a general error page which displays different message by HTTP
I want to display my arraylist results by using custom list view. for now
my Problem is, like the title say, that i want to display the Download

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.