On Tue, Mar 27, 2001 at 12:12:19PM -0500, Rodent of Unusual Size wrote:
> Here is a patch that will fix this, without breaking anything
> else as far as I can tell. ErrorDocument 400 will be honoured
> regardless of the cause of the HTTP_BAD_REQUEST condition.
>
> For 1.3.next consideration.
Nope, -1. This won't work because those are conditions tested before
the request record contains elements needed by die and its subsequently
called subroutines. In any case, it is not possible to send custom
responses for every single possible error condition, so we've got better
things to do than fix this problem in 1.3.
In order to make this work [in 2.0], the error sending code should be
replaced by something that doesn't assume it is coming at the end
of a normal request. Instead, it should be an internal redirect to
a directory of template files (301.htm, 404.htm, etc.) that can be
filtered to include the specific error information (properly encoded,
of course) based on notes given to the internal redirect. That would
separate the read-status of the initial request from the error response
handling.
....Roy