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.

Joe

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

Reply via email to