From 4ba7f2ff80c1899461546593c4201a64d6a93ff6 Mon Sep 17 00:00:00 2001 From: birdieHyun Date: Sun, 18 Jun 2023 11:05:30 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20Validation=20=EC=8B=A4=ED=8C=A8=20?= =?UTF-8?q?=EA=B2=BD=EC=9A=B0=20405=20=EC=83=81=ED=83=9C=EC=BD=94=EB=93=9C?= =?UTF-8?q?=20=EB=B0=98=ED=99=98=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20(#84)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/secondhand/exception/GlobalExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/be/src/main/java/com/secondhand/exception/GlobalExceptionHandler.java b/be/src/main/java/com/secondhand/exception/GlobalExceptionHandler.java index f9009b525..06446251f 100644 --- a/be/src/main/java/com/secondhand/exception/GlobalExceptionHandler.java +++ b/be/src/main/java/com/secondhand/exception/GlobalExceptionHandler.java @@ -24,7 +24,7 @@ public ResponseEntity loginExceptionHandler(JwtTokenExcepti public ResponseEntity handleNotFoundError(NoHandlerFoundException e) { return ResponseEntity .status(HttpStatusCode.NOT_FOUND) - .body(new CustomErrorResponse(HttpStatusCode.NOT_FOUND, e.getMessage())); + .body(new CustomErrorResponse(HttpStatusCode.METHOD_NOT_ALLOWED, e.getMessage())); } @ExceptionHandler(MethodArgumentNotValidException.class)