projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bb13f8
)
Update quickstart.rst
author
Julien Bouquillon
<contact@revolunet.com>
Wed, 29 May 2013 09:57:49 +0000
(12:57 +0300)
committer
Julien Bouquillon
<contact@revolunet.com>
Wed, 29 May 2013 09:57:49 +0000
(12:57 +0300)
rephrase misleading info about `raise_for_status`
docs/user/quickstart.rst
patch
|
blob
|
history
diff --git
a/docs/user/quickstart.rst
b/docs/user/quickstart.rst
index
cb4ef57
..
1e36587
100644
(file)
--- a/
docs/user/quickstart.rst
+++ b/
docs/user/quickstart.rst
@@
-260,7
+260,7
@@
reference::
>>> r.status_code == requests.codes.ok
True
-If we made a bad request (
non-200
response), we can raise it with
+If we made a bad request (
a 4XX client error or 5XX server error
response), we can raise it with
:class:`Response.raise_for_status()`::
>>> bad_r = requests.get('http://httpbin.org/status/404')