def set_bucket_props(self, bucket, props):
        bucket_type = self._get_bucket_type(bucket.bucket_type)
        url = self.bucket_properties_path(bucket.name,
                                          bucket_type=bucket_type)
        headers = {'Content-Type': 'application/json'}
        content = json.dumps({'props': props})

        # Run the request...
        status, _, body = self._request('PUT', url, headers, content)

        if status == 401:
            raise SecurityError('Not authorized to set bucket properties.')
        elif status != 204:
            raise RiakError('Error setting bucket properties.')
        return True
Tests if the passed header exists in the response.
dataset/ETHPy150Open basho/riak-python-client/riak/transports/http/transport.py/HttpTransport.set_bucket_props--crossover with--dataset/ETHPy150Open armet/python-armet/armet/http/response.py/Response.__contains__