diff -r 14c1ff6a8086 Doc/library/http.server.rst --- a/Doc/library/http.server.rst Tue Mar 11 08:12:48 2014 +0100 +++ b/Doc/library/http.server.rst Thu Mar 13 09:54:52 2014 +0100 @@ -110,13 +110,16 @@ .. 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 :attr:`responses` class variable. + Specifies a format string that should be used as a template for building + an error response to the client. String accepts a dictionary that consists + of following items: *code*, *message* and *explain*. The *code* item in the + dictionary is a numeric error code. The *message* item is a short + message from the *responses* dictionary or your own short message that + describes an error. The *explain* item is a long message from the + *responses* dictionary or you own message where you can provide more details + (see :attr:`send_error` and :attr:`responses` class variables). For example, + ``error_message_format % {'code': code, 'message': shortmessage,`` + ``'explain': longmessage}``. .. attribute:: error_content_type