On Mon, Nov 10, 2014 at 1:09 PM, Felix Meschberger <[email protected]> wrote: > > ...OTOH the Servlet API states that the setStatus is actually disabled when > calling the error handling JSP (if it > is a JSP) and thus probably implies that the servlet container presets the > status to the actual status code > and doesn’t allow the error handler to change it....
Right, so that's another point for making sure Sling sets the default status code, according to what's going on, in case the script doesn't. But as Carsten says that's tricky. I'm still not sure either what the best way is in general, but in some cases Sling returns a 200 status if the error script fails, as in my SLING-4143 "example 2". I think we should at least fix that one. -Bertrand
