code: function sendErr (res, code, err) {
    if (typeof code !== 'number') {
      err = code
      code = err.code
    }
  
    code = typeof code === 'undefined' ? 501 : code
    res.status(code).json({
      message: err.message || err
    })
  }
docs: this._recipients[rootHash] = receiveMsg app.put('/send/' + rootHash + '/:fromRootHash', this._onmessage) }