express-ipfilter-secured
Version:
A light-weight IP address based filtering system
13 lines (10 loc) • 375 B
JavaScript
module.exports = function IpDeniedError(message, extra) {
Error.captureStackTrace(this, this.constructor);
this.name = this.constructor.name;
this.message = message || 'The requesting IP was denied';
this.extra = extra;
this.status = this.statusCode = 403;
};
require('util').inherits(module.exports, Error);
//# sourceMappingURL=deniedError.js.map
;