I have an custom IHttpModule
that handels all available events and logs the HttpContext.Current.Response.StatusCode
to a file.
My web.config
does not contain any other module in <httpModules>
so all errors are promoted to the browser.
Although the Browsers shows a 404, the log file is full of 200 (Ok) entries and not a single 404.
What am I missing?
Update
An Url ending with .aspx
does have a 404
StatusCode in the PreSendRequestHeaders
event,
but Urls wending with .pdf
for example show StatusCode 200
in all events?!