Skip to content
Myr

exceptions.md

This file

Path

docs/exceptions.md

124 lines · 2.1 KiB · Markdown

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 920333e point at it.

Always encode forward slashes as `%2F` in query parameters (#2723)Zanie Adkinsbefore adoption920333e

lines 1–124why, one step back
1# Exceptions
23This page lists exceptions that may be raised when using HTTPX.45For an overview of how to work with HTTPX exceptions, see [Exceptions (Quickstart)](quickstart.md#exceptions).67## The exception hierarchy89* HTTPError10 * RequestError11 * TransportError12 * TimeoutException13 * ConnectTimeout14 * ReadTimeout15 * WriteTimeout16 * PoolTimeout17 * NetworkError18 * ConnectError19 * ReadError20 * WriteError21 * CloseError22 * ProtocolError23 * LocalProtocolError24 * RemoteProtocolError25 * ProxyError26 * UnsupportedProtocol27 * DecodingError28 * TooManyRedirects29 * HTTPStatusError30* InvalidURL31* CookieConflict32* StreamError33 * StreamConsumed34 * ResponseNotRead35 * RequestNotRead36 * StreamClosed3738---3940## Exception classes4142::: httpx.HTTPError43 :docstring:4445::: httpx.RequestError46 :docstring:4748::: httpx.TransportError49 :docstring:5051::: httpx.TimeoutException52 :docstring:5354::: httpx.ConnectTimeout55 :docstring:5657::: httpx.ReadTimeout58 :docstring:5960::: httpx.WriteTimeout61 :docstring:6263::: httpx.PoolTimeout64 :docstring:6566::: httpx.NetworkError67 :docstring:6869::: httpx.ConnectError70 :docstring:7172::: httpx.ReadError73 :docstring:7475::: httpx.WriteError76 :docstring:7778::: httpx.CloseError79 :docstring:8081::: httpx.ProtocolError82 :docstring:8384::: httpx.LocalProtocolError85 :docstring:8687::: httpx.RemoteProtocolError88 :docstring:8990::: httpx.ProxyError91 :docstring:9293::: httpx.UnsupportedProtocol94 :docstring:9596::: httpx.DecodingError97 :docstring:9899::: httpx.TooManyRedirects100 :docstring:101102::: httpx.HTTPStatusError103 :docstring:104105::: httpx.InvalidURL106 :docstring:107108::: httpx.CookieConflict109 :docstring:110111::: httpx.StreamError112 :docstring:113114::: httpx.StreamConsumed115 :docstring:116117::: httpx.StreamClosed118 :docstring:119120::: httpx.ResponseNotRead121 :docstring:122123::: httpx.RequestNotRead124 :docstring: