lib/middleware.js
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();
  };
}
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();
  };
}
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 ( ) ; } ; }
Ignore errors for provided status codes
Ignore errors for provided status codes