Bug 61152

Summary: Hardcoded message for ErrorDocument should have text/plain type
Product: Apache httpd-2 Reporter: Liam Morland <Liam>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.4.18   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Liam Morland 2017-06-04 12:31:47 UTC
If I set:
ErrorDocument 404 "404 Not found"
The message will be sent with header:
Content-Type: text/html; charset=iso-8859-1

Instead, it should use text/plain. People are very unlikely to put a valid HTML document between the quotes in the directive.
Comment 1 Rubén J. García Hernández 2019-05-28 16:36:22 UTC
On a related note:

I tried 
ErrorDocument 404 ""
which I think is allowed per the documentation

However I get the following:
AH00526: Syntax error on line ...
ErrorDocument takes two arguments, Change responses for HTTP errors

ErrorDocument 404 " "
does not give an error, but it not exactly what I wanted.