10 lines
277 B
JavaScript
10 lines
277 B
JavaScript
|
module.exports = class ForbiddenError extends Error {
|
||
|
constructor(message, code, ...translateArgs) {
|
||
|
super(message);
|
||
|
this.name = 'ForbiddenError';
|
||
|
this.statusCode = 403;
|
||
|
this.code = code;
|
||
|
this.translateArgs = translateArgs;
|
||
|
}
|
||
|
};
|