

@staticmethod
def _check_status(status):
    '\n        Validates error statuses.\n        '
    status_code = status['code']
    if (status_code == 429):
        raise GeocoderQuotaExceeded('The given key has gone over the requests limit in the 24 hour period or has submitted too many requests in too short a period of time.')
    if (status_code == 200):
        return
    if (status_code == 403):
        raise GeocoderQueryError('Your request was denied.')
    else:
        raise GeocoderQueryError('Unknown error.')

dataset/ETHPy150Open geopy/geopy/geopy/geocoders/opencage.py OpenCage._check_status/original