FIX: exceeding Notes limit should be a 401 not 500

This commit is contained in:
Michael Dausmann
2023-06-03 23:01:46 +10:00
parent 1dbacea15c
commit b411218a3e
3 changed files with 23 additions and 1 deletions

6
lib/services/errors.ts Normal file
View File

@@ -0,0 +1,6 @@
export class AccountLimitError extends Error {
constructor(message: string) {
super(message);
Object.setPrototypeOf(this, AccountLimitError.prototype);
}
}