middleware.js
function(err, results) {

        if(options.headers) {
          // Set some headers so we can track what's going on
          var headers = {
            'X-Throttled': results.throttled,
            'X-Throttle-Remaining': Math.max(options.limit - results.count, 0)
          };
          if (results.expiresAt) {
            headers['X-Throttle-Reset'] = results.expiresAt;
          }
          res.set(headers);
        }

        if (err) {
          // Unknown error
          next(err);
          return;
        } else if (results.throttled) {

          if(logger) {
            // Log it
            logger.warn(
              '%s - ResponseThrottled for %s seconds - %s requests exceeded %s within %s seconds',
              ip,
              options.ban,
              results.count,
              options.limit,
              options.period);
          }

          // Let the client know this is forbidden
          res.status(403);

          // Create a human readable error
          var banLength = moment.duration(options.ban, 'seconds').humanize();
          next('Warning: Too many requests. You have been throttled for ' + banLength + '. ' +
            'Try again ' + moment(results.expiresAt).fromNow());
          return;
        } else {
          // All is good
          next();
          return;
        }
      }
function(err, results) {

        if(options.headers) {
          // Set some headers so we can track what's going on
          var headers = {
            'X-Throttled': results.throttled,
            'X-Throttle-Remaining': Math.max(options.limit - results.count, 0)
          };
          if (results.expiresAt) {
            headers['X-Throttle-Reset'] = results.expiresAt;
          }
          res.set(headers);
        }

        if (err) {
          // Unknown error
          next(err);
          return;
        } else if (results.throttled) {

          if(logger) {
            // Log it
            logger.warn(
              '%s - ResponseThrottled for %s seconds - %s requests exceeded %s within %s seconds',
              ip,
              options.ban,
              results.count,
              options.limit,
              options.period);
          }

          // Let the client know this is forbidden
          res.status(403);

          // Create a human readable error
          var banLength = moment.duration(options.ban, 'seconds').humanize();
          next('Warning: Too many requests. You have been throttled for ' + banLength + '. ' +
            'Try again ' + moment(results.expiresAt).fromNow());
          return;
        } else {
          // All is good
          next();
          return;
        }
      }
function ( err , results ) { if ( options . headers ) { // Set some headers so we can track what's going on var headers = { 'X-Throttled' : results . throttled , 'X-Throttle-Remaining' : Math . max ( options . limit - results . count , 0 ) } ; if ( results . expiresAt ) { headers [ 'X-Throttle-Reset' ] = results . expiresAt ; } res . set ( headers ) ; } if ( err ) { // Unknown error next ( err ) ; return ; } else if ( results . throttled ) { if ( logger ) { // Log it logger . warn ( '%s - ResponseThrottled for %s seconds - %s requests exceeded %s within %s seconds' , ip , options . ban , results . count , options . limit , options . period ) ; } // Let the client know this is forbidden res . status ( 403 ) ; // Create a human readable error var banLength = moment . duration ( options . ban , 'seconds' ) . humanize ( ) ; next ( 'Warning: Too many requests. You have been throttled for ' + banLength + '. ' + 'Try again ' + moment ( results . expiresAt ) . fromNow ( ) ) ; return ; } else { // All is good next ( ) ; return ; } }
Now do something with all of this information

@param     {Error}    err
@param     {Object}    results
Now do something with all of this information