diff --git a/Lib/http/server.py b/Lib/http/server.py index a35fd9d6ee2..fb9cb5f6c1d 100644 --- a/Lib/http/server.py +++ b/Lib/http/server.py @@ -103,15 +103,20 @@ import copy # Default error message template DEFAULT_ERROR_MESSAGE = """\ -
-Error code %(code)d. -
Message: %(message)s. -
Error code explanation: %(code)s = %(explain)s. - + + +
+ +Error code: %(code)d
+Message: %(message)s.
+Error code explanation: %(code)s - %(explain)s.
+ + """ DEFAULT_ERROR_CONTENT_TYPE = "text/html;charset=utf-8"