mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
feat(event): April Foolin
This commit is contained in:
@@ -42,6 +42,15 @@ export class NotFound extends CustomError {
|
||||
}
|
||||
}
|
||||
|
||||
export class Forbidden extends CustomError {
|
||||
constructor (customMessage) {
|
||||
super();
|
||||
this.name = this.constructor.name;
|
||||
this.httpCode = 403;
|
||||
this.message = customMessage || 'Access forbidden.';
|
||||
}
|
||||
}
|
||||
|
||||
export class NotImplementedError extends CustomError {
|
||||
constructor (str) {
|
||||
super();
|
||||
|
||||
Reference in New Issue
Block a user