From cfec0f7c45fe01695cbcf5f702a1753e78dbe4d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0dil=20Zeynep=20Alemdar?= Date: Sun, 12 Jan 2025 20:52:19 +0300 Subject: [PATCH] refactor 405 response to API_ERROR --- .../ays/common/exception/handler/GlobalExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/ays/common/exception/handler/GlobalExceptionHandler.java b/src/main/java/org/ays/common/exception/handler/GlobalExceptionHandler.java index 290373256..bb870adf9 100644 --- a/src/main/java/org/ays/common/exception/handler/GlobalExceptionHandler.java +++ b/src/main/java/org/ays/common/exception/handler/GlobalExceptionHandler.java @@ -179,7 +179,7 @@ AysErrorResponse handleHttpRequestMethodNotSupportedException(HttpRequestMethodN log.error(exception.getMessage(), exception); return AysErrorResponse.builder() - .header(AysErrorResponse.Header.VALIDATION_ERROR.getName()) + .header(AysErrorResponse.Header.API_ERROR.getName()) .build(); }