On Thu, Feb 28, 2008 at 05:47:20PM -0800, Ian Burrell wrote:
> We use a subclass of HTML::Mason::CGIHandler.  How do we get 404
> errors instead of fatal errors when the component is not found?  It
> looks like HTML::Mason::ApacheHandler has special code to detect
> TopLevelNotFound errors and turn them into 404's (or at least comments
> about what to override).  What do we need to override in CGIHandler to
> return 404's?

I think what ApacheHandler really relies on is trying to resolve the path to a
component before doing any execution.  The TopLevelNotFound errors are caught,
but my guess (only a guess) is that that's just a backup, for some weird edge
case.

Doing the same thing with CGIHandler seems pretty reasonable to me.  There's
nothing to override, though, because CGIHandler does less than Apache.

hdp.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to