ConnectionError(RequestException): A connection error occurred.
ProxyError(ConnectionError): A proxy error occurred.
SSLError(ConnectionError): An SSL error occurred.
ConnectTimeout(ConnectionError, Timeout): The connection timed out.
Timeout(RequestException): The request timed out; listening for this exception will listen for both ConnectTimeout and ReadTimeout exceptions.
ReadTimeout(Timeout): The response times out and the server does not send any data within the specified time.
URLRequired(RequestException): Invalid URL.
TooManyRedirects(RequestException): Too many redirects.
MissingSchema(RequestException, ValueError): The URL is missing a resource type (eg http, https or ftp).
InvalidSchema(RequestException, ValueError): The resource type specified by the URL is invalid, or the resource type is not supported (See defaults.py for valid schemas.).
ChunkedEncodingError(RequestException): The server declared a chunked encoding but sent an invalid chunk.(The server declared chunked encoding but sent an invalid chunk.).
StreamConsumedError(RequestException,TypeError): The content of this response has already been consumed.
ContentDecodingError(RequestException, BaseHTTPError): Failed to decode response content.
InvalidJSONError: JSON error.
InvalidProxyURL(InvalidURL): The provided proxy URL is invalid.
Warning:
The following are exception warnings under the request.exceptions module:
RequestsWarning(Warning): Basic warnings for requests.
FileModeWarning(RequestsWarning, DeprecationWarning): The file is opened in text mode, but the request determines its binary length.
RequestsDependencyWarning(RequestsWarning): The imported dependency does not match the expected version range.