From a7323bb343020fceecec4de5035e2e4c311e4ea0 Mon Sep 17 00:00:00 2001 From: Daniil Makeev <holodnayazvezda@yandex.ru> Date: Wed, 19 Feb 2025 15:19:28 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=20st?= =?UTF-8?q?atus=20code=20=D0=BF=D1=80=D0=B8=20=D0=BD=D0=B5=D0=B2=D0=B5?= =?UTF-8?q?=D1=80=D0=BD=D0=BE=D0=BC=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/NoPopupBasicAuthenticationEntryPoint.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/example/onomatopoeiaback/security/NoPopupBasicAuthenticationEntryPoint.java b/src/main/java/com/example/onomatopoeiaback/security/NoPopupBasicAuthenticationEntryPoint.java index f1a4087..b008afe 100644 --- a/src/main/java/com/example/onomatopoeiaback/security/NoPopupBasicAuthenticationEntryPoint.java +++ b/src/main/java/com/example/onomatopoeiaback/security/NoPopupBasicAuthenticationEntryPoint.java @@ -14,7 +14,7 @@ public class NoPopupBasicAuthenticationEntryPoint implements AuthenticationEntry public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException { - response.sendError(HttpServletResponse.SC_UNAUTHORIZED, authException.getMessage()); + response.sendError(HttpServletResponse.SC_FORBIDDEN, authException.getMessage()); } } \ No newline at end of file