Skip to content
Myr

Merge pull request #3297 from davidfischer/http-error-specifics

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

Note how HTTPErrors are raised

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 6c9a0ef, 277d4a4 · 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