From a0d3c89395ea391a97e92db4f202a5a3a3a8a378 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Mon, 17 Feb 2025 16:45:43 +0700 Subject: [PATCH] fix: wrong status code --- src/utils/error.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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`, );