           if (!buf || buf.length < 3) throw 'unexpected EOF';
                    dbg.debug('received `bucket.set` response: ' + toHex(buf));
                    if (buf[0] != 0) throw 'unexpected path'
                    if (buf[1] > 127) throw 'only decoding responses of up to 127 bytes is currently supported - open a PR!'
                    switch (buf[2]) {
                        case 0:
                            // ok
                            if (buf.length != 3) throw "unparsed bytes left on 