title: Custom error page in web.config, will error info be lost?
body: <p>If my web.config has:</p>
  
  <pre><code>&lt;customErrors mode="Off" defaultRedirect="CustomErrorPage.aspx"&gt;
        &lt;error statusCode="401" redirect="~/CustomErrorPage.aspx?statusCode=401" /&gt;
        &lt;error statusCode="403" redirect="~/CustomErrorPage.aspx?statusCode=403" /&gt;
        &lt;error statusCode="404" redirect="~/CustomErrorPage.aspx?statusCode=404" /&gt;
        ...
  &lt;/customErrors&gt;
  </code></pre>
  
  <p>Now in my CustomErrorPage.aspx, how can I get the stacktrace information similar to how I see that yellow screen error page when there is no custom error page and it is outputted to the browser?</p>
  
  <p><strong>Or, because this is redirecting to the customerrorpage.aspx, is the error essentially lost at this point and I can't access the exception information?</strong></p>
  
  <p>This is a legacy application with complex virtual directories etc. so I can just drop one of those error libraries so easily at this point.</p>