eZ Publish 5.2, legacy
Currently, the only way to override the HTTP 500 error message "Fatal error: The web server did not finish its request" is to customize kernel/private/classes/ezpkernelweb.php. Please create a mechanism (through an additional setting, for example) to allow for that in a clean, user-friendly way.
Note: using Apache custom error responses via ErrorDocument 500 would seem a good alternative, but it doesn't work:
The actual ErrorDocument documentation (http://httpd.apache.org/docs/current/mod/core.html#errordocument) states:
Although most error messages can be overridden, there are certain circumstances where the internal messages are used regardless of the setting of ErrorDocument. In particular, if a malformed request is detected, normal request processing will be immediately halted and the internal error message returned. This is necessary to guard against security problems caused by bad requests.
- testing discovered
EZP-24235 Missing documentation on EZP-23913 - Override legacy fatal error message