views:

54

answers:

1

I need to bind to an event in the request pipeline where both the Request and Response are populated. The Request is simple, but I need the StatusCode off the Response object. At what point in the pipeline is the Response populated?

A: 

Take a look at this page under the "The request is processed by the HttpApplication pipeline" section. The "EndRequest" event should have what you need.

David
It's populated, but it doesn't appear to be accurate. It's returning 200, even when something isn't found.
Deane
Do you have a custom 404 page?
David
Yeah, I think it's something to do with my server set-up -- its rewriting the URL or something.
Deane