[New-bugs-announce] [issue11567] http.server error message format

Ivan Radigales Creus report at bugs.python.org
Wed Mar 16 04:36:56 CET 2011

New submission from Ivan Radigales Creus <ivanrdg at gmail.com>:

The global variable DEFAULT_ERROR_MESSAGE on the module http.server is set to a non W3C standard value.

It would be better to use something like:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
<html xmlns="http://www.w3.org/1999/xhtml">
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<title>Error response</title>
		<h1>Error response</h1>
		<p>Error code %(code)d.</p>
		<p>Message: %(message)s.</p>
		<p>Error code explanation: %(code)s = %(explain)s.</p>

That follows the W3C standards and validates successful on the http://validator.w3.org


components: Library (Lib)
messages: 131086
nosy: Ivan.Radigales.Creus
priority: normal
severity: normal
status: open
title: http.server error message format
type: performance
versions: Python 3.2

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list