LETS GO BABY
Some checks failed
Deploy Website / deploy (push) Waiting to run
Deploy Backend / deploy (push) Has been cancelled

This commit is contained in:
Lee
2024-10-09 01:17:00 +01:00
parent e0fca1168a
commit e87d73bbdf
69 changed files with 583 additions and 458 deletions

View File

@ -0,0 +1,10 @@
import { HttpCode } from "../common/http-codes";
export class NotFoundError extends Error {
constructor(
public message: string = "not-found",
public status: number = HttpCode.NOT_FOUND.code
) {
super(message);
}
}

View File

@ -2,10 +2,9 @@ import { HttpCode } from "../common/http-codes";
export class RateLimitError extends Error {
constructor(
public message: string = 'rate-limited',
public detail: string = '',
public message: string = "rate-limited",
public status: number = HttpCode.TOO_MANY_REQUESTS.code
) {
super(message)
super(message);
}
}