cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: Proposal: Cocoon 2 and HTTP Error Handling
Date Thu, 01 Feb 2001 19:39:08 GMT
On Thu, 1 Feb 2001, Berin Loritsch wrote:

> This proposal stems from the irony of mapping Cocoon 2
> to match "/" in the servlet engine.  With Cocoon 1, if
> a source XML document could not be found, you got a
> classic 404 Document Not Found Error.  WIth Cocoon 2,
> you get a much more essoteric 500 error--which in 9
> out of 10 cases is not the desired functionality.
>
> My proposal is to throw a 404 Error if a Generator
> or a Reader can't find the requested resource.  Why
> at the Generator stage?  Because that is the only
> location in the pipeline that really makes sense,
> and where the absence of a template does not constitute
> an error.

+1 for using HTTP error codes the way they were intended to be used.

- donald


Mime
View raw message