diff options
| author | Julien Bouquillon <contact@revolunet.com> | 2013-05-29 12:57:49 +0300 |
|---|---|---|
| committer | Julien Bouquillon <contact@revolunet.com> | 2013-05-29 12:57:49 +0300 |
| commit | 340931ba8edbbfcd3bc7def1bebc989650b6d05d (patch) | |
| tree | be4e25cf5d3330af4be93e2c11e31d10093f9690 /docs/user | |
| parent | 3bb13f8fbb9d4ed1a20bd33495cdc087eb062ca0 (diff) | |
| download | python-requests-340931ba8edbbfcd3bc7def1bebc989650b6d05d.tar.gz | |
Update quickstart.rst
rephrase misleading info about `raise_for_status`
Diffstat (limited to 'docs/user')
| -rw-r--r-- | docs/user/quickstart.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/user/quickstart.rst b/docs/user/quickstart.rst index cb4ef579..1e365871 100644 --- 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') |
