Disable Apache 404 ErrorDocument HTML
While implementing a REST service, Apache started to append HTML 404 error HTML to my custom 404 application/json response.
It seems the Windows Apache version which comes with Zend Server requires a httpd.conf entry to disable the HTML to be appended to the response:
To disable it for a 404 error:
ErrorDocument 404 ” ”
So in general:
ErrorDocument
It’s weird though that the Linux version does not append this HTML error code by default.