httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Lewis <>
Subject Re: How does set status code in filter work
Date Sat, 08 Dec 2007 17:22:54 GMT
Your filter should run before the content type is set.  Then, you can do 
the usual redirect to /errors/HTTP_FORBIDDEN.html or whatever document 
you should be returning.  Yes, a filter should only be working on the 
through-put, so you should be handling that.  Perhaps someone knows 
about the pre-content-set filter types - I'm definitely not the expert.


John Zhang wrote:
> In an output filter.  If something is wrong, and I set
> the request object's status to an error code, then am
> I responsible for providing the proper error page
> content?  What is the correct way to handle errors in
> an output filter?
> Thanks,
> John

View raw message