double-submit-cookies
Version:
Double Submit Cookies Authentication
15 lines (12 loc) • 422 B
JavaScript
function UserNotFoundError (code, error) {
Error.call(this, error.message);
Error.captureStackTrace(this, this.constructor);
this.name = "UserNotFoundError";
this.message = error.message;
this.code = code;
this.status = 400;
this.inner = error;
}
UserNotFoundError.prototype = Object.create(Error.prototype);
UserNotFoundError.prototype.constructor = UserNotFoundError;
module.exports = UserNotFoundError;