def _request(self, path):
        response = request(os.path.join(self.server_url, path))
        if response.status == 404:
            return None
        elif response.status != 200:
            raise BootstrapSourceError('Remote bootstrapper request failed: %d' % response.status)

        try:
            return json.loads(response.read())
        except ValueError:
            raise BootstrapSourceError('Invalid JSON response from remote bootstrap server')
dataset/ETHPy150Open CacheBrowser/cachebrowser/cachebrowser/bootstrap.py/RemoteBootstrapSource._request/original