Holger Moser wrote:
> Hi,
>
> To keep a long storry short: i have an apache module that sets an
> ouput-filter (besides other things), does validate/mangle the data. so
> far so good. my question now is how can i get apache to generate an
> errorpage by itself if my module wants it to return with e.g. 404
> errcode (just returning the status code as outputfilter returnvalue
> doesnt work.. i tried that because someone mentioned it could work).
>   

It does, but only in content generators.  You are working in a content
filter, which occurs after any content-generator should have run
(including the error generator itself).  I expect that your only
solution is to generate your own error page, however, I am not any kind
of an expert in this niche you are asking about.

> currently i generate my own errorpage with the statuscode as workaround
> (but this is only a temp solution). so whats the correct way doing that?
>
>   

It should be done using the content generator.  If an output filter runs
and fails, the user really shouldn't end up with an entire 404.  That
should only really occur if the actual document wasn't found.  But
again, that is my opinion.  Take it for what it is worth.

Joe
-- 
Joseph Lewis <http://sharktooth.org/>
"Divide the fire, and you will sooner put it out." - Publius Syrus

Reply via email to