title: Default or custom error page? - WebConfig custom error defaultRedirect
body: <p>Preparing for an exam, <strong>Do you get the default error page if you don't specify the error code inside customError?</strong></p>
  
  <p>I thought since you have defaultRedirect set, all errors regardless if they are accounted for specifically get sent to the defaultRedirect page. However the practice questions I've seen say the opposite. I looked at the <a href="https://docs.microsoft.com/en-us/dotnet/api/system.web.configuration.customerror?view=netframework-4.7.2" rel="nofollow noreferrer">documentation</a> and I can only see it say it refers to the default if the custom page doesn't exist</p>
  
  <pre><code>&lt;customErrors mode="On" defaultRedirect="Error.htm"&gt;
    &lt;error statusCode="500" redirect="/CustomError.html"/&gt;
  &lt;/customErrors&gt;
  </code></pre>
  
  <p><em>Original Question</em></p>
  
  <p><em>When a 400-level error occurs, the ASP.NET default error page displays. [True / False]</em></p>
  
  <p>I believe it's false, answers say it's true.</p>