def checkResponse(response, msg=""):
    if response.status not in [200, 201, 207]:
        raise ConnectionException(response.status, msg)
dataset/ETHPy150Open lexich/yandex-disk-webdav/yandexwebdav.py/checkResponse/original