code: function(isGlobal, server, err, msg, session, resp, opts, cb) {
    if(isGlobal) {
      cb(err, resp, opts);
      // after filter should not interfere response
      afterFilter(isGlobal, server, err, msg, session, resp, opts, cb);
    } else {
      afterFilter(isGlobal, server, err, msg, session, resp, opts, cb);
    }
  }
docs: Send response to client and fire after filter chain if any.