def validate_google_status(self, response):
        self.status_code = response.json()['status']
        if self.status_code != self.STATUS_OK:
            message = '%s' % dict(self.STATUS_CODES).get(self.status_code)
            raise ApiClientException(message)
        return self.status_code
Method validates only google's status.
dataset/ETHPy150Open slawek87/geolocation-python/geolocation/validators.py/ResponseValidator.validate_google_status