11 lines
329 B
JavaScript
11 lines
329 B
JavaScript
const SalixError = require('./salixError');
|
|
module.exports = class ForbiddenError extends SalixError {
|
|
constructor(message, code, ...translateArgs) {
|
|
super(message);
|
|
this.name = ForbiddenError.name;
|
|
this.statusCode = 403;
|
|
this.code = code;
|
|
this.translateArgs = translateArgs;
|
|
}
|
|
};
|