not sure that you exceed PEP8 restrictions if you just do that:

    from requests.exceptions import HTTPError, ConnectionError