Skip to content
Myr

Update quickstart.rst

Before adoption: this commit came in with the history the project adopted, so no landing records it.

rephrase misleading info about `raise_for_status`

authored by Julien Bouquillon · committed by Julien Bouquillon · parent 3bb13f8 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:docs/user/quickstart.rst+1 added-1 removed
258 unmodified lines
259260 >>> r.status_code == requests.codes.ok261 True262263If we made a bad request (non-200 response), we can raise it with263If we made a bad request (a 4XX client error or 5XX server error response), we can raise it with264:class:`Response.raise_for_status()`::265266 >>> bad_r = requests.get('http://httpbin.org/status/404')267 >>> bad_r.status_code
150 unmodified lines