Index: Doc/library/basehttpserver.rst =================================================================== --- Doc/library/basehttpserver.rst (revision 60975) +++ Doc/library/basehttpserver.rst (working copy) @@ -122,6 +122,11 @@ class variable. +.. attribute:: BaseHTTPRequestHandler.error_content_type + + Specifies the Content-Type HTTP header of error responses sent to the client. + The default value is ``'text/html'``. + .. attribute:: BaseHTTPRequestHandler.protocol_version This specifies the HTTP protocol version used in responses. If set to Index: Lib/BaseHTTPServer.py =================================================================== --- Lib/BaseHTTPServer.py (revision 60975) +++ Lib/BaseHTTPServer.py (working copy) @@ -76,7 +76,7 @@ import mimetools import SocketServer -# Default error message +# Default error message template DEFAULT_ERROR_MESSAGE = """\