diff -r d975f50de5aa Doc/library/http.server.rst --- a/Doc/library/http.server.rst Mon Mar 10 19:26:57 2014 +0100 +++ b/Doc/library/http.server.rst Tue Mar 18 09:28:45 2014 +0100 @@ -110,13 +110,13 @@ .. attribute:: error_message_format - Specifies a format string for building an error response to the client. It - uses parenthesized, keyed format specifiers, so the format operand must be - a dictionary. The *code* key should be an integer, specifying the numeric - HTTP error code value. *message* should be a string containing a - (detailed) error message of what occurred, and *explain* should be an - explanation of the error code number. Default *message* and *explain* - values can found in the *responses* class variable. + Specifies a format string that should be used by :attr:`send_error` method + for building an error response to the client. The string is filled by + default with variables from :attr:`responses` based on the *code* that + passed to :attr:`send_error`. You can also specify an alternate explain + message that overrides the one from :attr:`responses` when calling + :attr:`send_error` (see :attr:`send_error` method and :attr:`responses` + class variable). .. attribute:: error_content_type