fix buf with passing respose_code instead of self
implementaton of get_buckets + (get|set)_bucket_props