code: function (type) {
        if (this.has(type)) {
          var messages = req.session[_session_key][type];
          delete req.session[_session_key][type];
        }
        return messages||[];
      }
docs: Get a specific type of flash messages
  
  @param  {string} type
  @return {object}