feat(event): April Foolin

This commit is contained in:
Sabe Jones
2020-04-01 06:31:39 -05:00
parent 92cf506bad
commit e39eafd3f0
157 changed files with 3090 additions and 2328 deletions
@@ -25,4 +25,6 @@ export default {
missingCustomerId: 'Missing "req.query.customerId"',
missingPaypalBlock: 'Missing "req.session.paypalBlock"',
missingSubKey: 'Missing "req.query.sub"',
ipAddressBlocked: 'This IP address has been blocked from accessing Habitica. This may be due to a breach of our Terms of Service or technical issue originating at this IP address. For details or to ask to be unblocked, please email admin@habitica.com or ask your parent or guardian to email them. Include your Habitica @ Username or User Id in the email if you have one.',
};
+9
View File
@@ -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();