ASP.NET Custom Error except 404 errors,
<p>I have setup custom error as follows..</p>

<pre><code>protected void Application_Error(Object sender, EventArgs e)
{
    Exception ex = HttpContext.Current.Server.GetLastError();
    if (ex is HttpUnhandledException &amp;&amp; ex.InnerException != null)
     ex = ex.InnerException;
    if (ex != null)
    {
     try
     {
      Logger.Log(LogEventType.UnhandledException, ex);
     }
     catch
     { }
    }

    HttpContext.Current.Server.ClearError();
    Response.Redirect(MyCustomError);

}
</code></pre>

<p>I am wondering if it is possible to detect if this error is a 404 error, and then show the default 404 error?</p>
