diff options
author | Nate Prewitt <Nate.Prewitt@gmail.com> | 2018-04-07 15:11:00 -0700 |
---|---|---|
committer | Nate Prewitt <Nate.Prewitt@gmail.com> | 2018-04-07 15:11:00 -0700 |
commit | c7cea32304c05ef5890bcb8941edc8b6fbe04a03 (patch) | |
tree | 7a5d670da7f5b7a8403537f2099435ce2407194e /requests/models.py | |
parent | 9c6bd54b44c0b05c6907522e8d9998a87b69c1cd (diff) | |
parent | b66908e7b647689793e299edc111bf9910e93ad3 (diff) | |
download | python-requests-updating_3.0.0.tar.gz |
Merge remote-tracking branch 'upstream/master' into updating_3.0.0updating_3.0.0
Diffstat (limited to 'requests/models.py')
-rw-r--r-- | requests/models.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/requests/models.py b/requests/models.py index e776bc34..c3391ad2 100644 --- a/requests/models.py +++ b/requests/models.py @@ -676,11 +676,11 @@ class Response(object): @property def ok(self): - """Returns True if :attr:`status_code` is less than 400. + """Returns True if :attr:`status_code` is less than 400, False if not. This attribute checks if the status code of the response is between 400 and 600 to see if there was a client error or a server error. If - the status code, is between 200 and 400, this will return True. This + the status code is between 200 and 400, this will return True. This is **not** a check to see if the response code is ``200 OK``. """ try: |