Skip to content

Commit e4b213c

Browse files
committed
oops... missed some docs from main
1 parent 292f194 commit e4b213c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Doc/library/http.server.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,12 @@ instantiation, of which this module provides three different variants:
253253
readable description of the error. The *explain* argument can be used to
254254
provide more detailed information about the error; it will be formatted
255255
using the :attr:`error_message_format` attribute and emitted, after
256-
a complete set of headers, as the response body.
256+
a complete set of headers, as the response body. The :attr:`responses`
257+
attribute holds the default values for *message* and *explain* that
258+
will be used if no value is provided; for unknown codes the default value
259+
for both is the string ``???``. The body will be empty if the method is
260+
HEAD or the response code is one of the following: :samp:`1{xx}`,
261+
``204 No Content``, ``205 Reset Content``, ``304 Not Modified``.
257262

258263
The *extra_headers* argument can be a key-value tuple list which
259264
specifies additional headers to be sent in the response (for

0 commit comments

Comments
 (0)