Skip to content
Myr

Note how HTTPErrors are raised

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

authored by David Fischer · committed by David Fischer · parent 7a404cf · Browse files · 1 file+3 added−2 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+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:docs/user/quickstart.rst+3 added-2 removed
490 unmodified lines
491492In the event of a network problem (e.g. DNS failure, refused connection, etc),493Requests will raise a :class:`~requests.exceptions.ConnectionError` exception.494495In the rare event of an invalid HTTP response, Requests will raise an496:class:`~requests.exceptions.HTTPError` exception.495:meth:`Response.raise_for_status() <requests.Response.raise_for_status>` will496raise an :class:`~requests.exceptions.HTTPError` if the HTTP request497returned an unsuccessful status code.498499If a request times out, a :class:`~requests.exceptions.Timeout` exception is500raised.501
9 unmodified lines