Currently it's quite impossible to maintain custom error pages for
HTTP 404 and still keep the proper response code

If we redirect with routes_onerror we can get every error page dressed
in overall page layout, but the response code is 200 OK, which isn't
very good.

If we do not redirect, we could always set the body when raising 404
errors, but then you'd have to define routes for every controller and
action and direct catch all pattern to controller::action responsible
just for raising HTTP 404 error.

is there any solution to this problem, or plans on fixing it?

Reply via email to