title: Custom HTTP error page is not displayed in Internet Explorer
body: <p>I am using Tomcat 7 and JSP pages. I would like to provide a custom error page for HTTP 500 errors.</p>
  
  <p>What I did is to declare the custom error page as following in <code>web.xml</code>:</p>
  
  <pre><code>&lt;error-page&gt;
    &lt;error-code&gt;500&lt;/error-code&gt;
    &lt;location&gt;/error.jsp&lt;/location&gt;
  &lt;/error-page&gt;
  </code></pre>
  
  <p>And I created a JSP called <code>error.jsp</code> with the following code:</p>
  
  <pre><code>&lt;%@ page pageEncoding="UTF-8" isErrorPage="true" %&gt;
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;500&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;img src="${pageContext.request.contextPath}/images/500.jpg" /&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Now this works in most browsers, but in Internet Explorer I am taken to the standard "The website cannot display the page" page.</p>
  
  <p>Why is my custom HTTP 500 error page not being displayed in Internet Explorer?</p>