code: function ignoreErrorForStatusCodes() {
    var statusCodes = Array.prototype.slice.call(arguments);
  
    return function(ctx, next) {
      if (ctx.err && ctx.res && statusCodes.indexOf(ctx.res.statusCode) !== -1) {
        delete ctx.err;
      }
  
      next();
    };
  }
docs: Ignore errors for provided status codes