def validate_response_status(self, response):
        self.status_code = response.status_code
        if self.status_code != requests.codes.ok:
            message = '%s %s' % (self.status_code, response.reason)
            raise ApiClientException(message)
        return self.status_code
Configures i2c devices when running in appropriate environment.
dataset/ETHPy150Open slawek87/geolocation-python/geolocation/validators.py/ResponseValidator.validate_response_status--crossover with--dataset/ETHPy150Open FishPi/FishPi-POCV---Command---Control/fishpi/localconfig_old.py/FishPiConfig.configure_devices