fix: wrong status code

This commit is contained in:
Methapon2001 2025-02-17 16:45:43 +07:00
parent f26de4f639
commit a0d3c89395

View file

@ -11,7 +11,7 @@ export function relationError(name: string) {
export function notFoundError(name: string) {
return new HttpError(
HttpStatus.BAD_REQUEST,
HttpStatus.NOT_FOUND,
`${name} cannot be found.`,
`${name.charAt(0).toLowerCase() + name.replaceAll(" ", "").slice(1)}NotFound`,
);