salix/loopback/util/forbiddenError.js

11 lines
329 B
JavaScript
Raw Permalink Normal View History

const SalixError = require('./salixError');
module.exports = class ForbiddenError extends SalixError {
2023-04-06 12:59:25 +00:00
constructor(message, code, ...translateArgs) {
super(message);
this.name = ForbiddenError.name;
2023-04-06 12:59:25 +00:00
this.statusCode = 403;
this.code = code;
this.translateArgs = translateArgs;
}
};