var express = require('express'),
router = express.Router();

var errors = ['001', '002', '003'];

/* GET users listing. */
router.get('/', function(req, res, next) {
  if(req.query.fail) {
    res.status(500).json({'errors': errors});
  } else {
    res.status(200);
  }
});

module.exports = router;

@@ -165,16 +165,50 @@
  %7B%0A  if(
+'fail' in req.query && JSON.parse(
 req.quer
@@ -214,16 +214,26 @@
 ry.fail)
+ === true)
  %7B%0A    r
@@ -289,24 +289,28 @@
  %7B%0A    res.s
+endS
 tatus(200);%0A

fix error failure evaluation