Skip to content

Commit

Permalink
Document client error response fields (aio-libs#2462)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack Hsi authored and asvetlov committed Nov 4, 2017
1 parent de32b56 commit 092dc66
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/client_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1576,6 +1576,18 @@ Response errors
Instance of :class:`RequestInfo` object, contains information
about request.

.. attribute:: code

HTTP status code of response (:class:`int`), e.g. ``200``.

.. attribute:: message

Message of response (:class:`str`), e.g. ``"OK"``.

.. attribute:: headers

Headers in response, a list of pairs.

.. attribute:: history

History from failed response, if available, else empty tuple.
Expand Down

0 comments on commit 092dc66

Please sign in to comment.