Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #1904 from mjpieters/doc-response-reason

Document the `Response.reason` attribute.
  • Loading branch information...
commit 2b9b4a35b21affc1a59b11fffff23589cab5f356 2 parents 15ac4e5 + 3443c17
@Lukasa Lukasa authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  requests/models.py
View
3  requests/models.py
@@ -517,7 +517,7 @@ def __init__(self):
self._content = False
self._content_consumed = False
- #: Integer Code of responded HTTP Status.
+ #: Integer Code of responded HTTP Status, e.g. 404 or 200.
self.status_code = None
#: Case-insensitive Dictionary of Response Headers.
@@ -541,6 +541,7 @@ def __init__(self):
#: up here. The list is sorted from the oldest to the most recent request.
self.history = []
+ #: Textual reason of responded HTTP Status, e.g. "Not Found" or "OK".
self.reason = None
#: A CookieJar of Cookies the server sent back.
Please sign in to comment.
Something went wrong with that request. Please try again.