

module.exports = function(req, res){
  
  var status = req.params.status || 200;
  var delay = Number(req.query.delay || 0);
  
  if(delay && delay > 0 && delay <= 120){
    setTimeout(function(){
      res.status(status).render('test', { status: status, delay: delay });
}, delay * 1000);
  } else {
    res.status(status).render('test', { status: status, delay: 'None' });
  }

};


module.exports = function(req, res){
  
  var status = req.params.status || 200;
  var delay = Number(req.query.delay || 0);
  
  if(delay && delay > 0 && delay <= 300){ // 5 minutes
    setTimeout(function(){
      res.status(status).render('test', { status: status, delay: delay });
}, delay * 1000);
  } else {
    res.status(status).render('test', { status: status, delay: 'None' });
  }

};
increase max delay