How to set up apache to serve no error page content? I don't want the default behavior, blank or custom page. I want return no content except headers, that all browsers must display own native error page. I'm using Apache 2.2.22
I'm fairly sure you can't do this Apache goes to some lengths to be helpful. From the ErrorDocument documentation
the rest being custom/local/and remote error documents. Later the documentation says
So it appears that the default behaviour is to provide a hard coded ErrorDocument and that you can't override that in the way that you want.
Have you tried setting empty
Apache might be helpful and ignore empty values so you may have to send a space or a
It's worth mentioning that browsers don't have error pages for all the different possible error codes. It is the Server's responsibility to provide those pages. When browsers do display their own error pages, it's likely that it will be generic and misleading.
Internet Explorer is unique in thinking it knows better than the server and will override your error pages if they are less than 512 bytes. The others only provide error pages for the situations where the server can't such as a DNS lookup error, a reset connection or a redirect loop. In most browsers, what you will get if you send an empty error document is a blank page.