Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Document the `Response.reason` attribute.

Made `.status_code` and `.reason` consistent with one another, adding some examples. Addresses #1225.
  • Loading branch information...
commit 3443c177a3b8279b6c5b5ce9c1643689d8983521 1 parent 15ac4e5
@mjpieters mjpieters 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.