diff --git a/src/utils/error.ts b/src/utils/error.ts index c21473d..2591821 100644 --- a/src/utils/error.ts +++ b/src/utils/error.ts @@ -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`, );