diff --git a/src/main/java/com/postgraduate/domain/auth/exception/PermissionDeniedException.java b/src/main/java/com/postgraduate/domain/auth/exception/PermissionDeniedException.java index d6b2d8c1..cc8e6966 100644 --- a/src/main/java/com/postgraduate/domain/auth/exception/PermissionDeniedException.java +++ b/src/main/java/com/postgraduate/domain/auth/exception/PermissionDeniedException.java @@ -1,12 +1,12 @@ package com.postgraduate.domain.auth.exception; -import static com.postgraduate.domain.auth.presentation.contant.AuthResponseCode.AUTH_NONE; +import static com.postgraduate.domain.auth.presentation.contant.AuthResponseCode.AUTH_DENIED; import static com.postgraduate.domain.auth.presentation.contant.AuthResponseMessage.PERMISSION_DENIED; public class PermissionDeniedException extends AuthException { public PermissionDeniedException() { - super(PERMISSION_DENIED.getMessage(), AUTH_NONE.getCode()); + super(PERMISSION_DENIED.getMessage(), AUTH_DENIED.getCode()); } } diff --git a/src/main/java/com/postgraduate/domain/auth/presentation/contant/AuthResponseCode.java b/src/main/java/com/postgraduate/domain/auth/presentation/contant/AuthResponseCode.java index f4666a3c..6b9f8202 100644 --- a/src/main/java/com/postgraduate/domain/auth/presentation/contant/AuthResponseCode.java +++ b/src/main/java/com/postgraduate/domain/auth/presentation/contant/AuthResponseCode.java @@ -11,8 +11,9 @@ public enum AuthResponseCode { AUTH_CREATE("AU202"), AUTH_DELETE("AU203"), AUTH_ALREADY("AU204"), + AUTH_NONE("AU205"), - AUTH_NONE("EX900"), + AUTH_DENIED("EX900"), AUTH_INVALID_KAKAO("EX901"), AUTH_KAKAO_CODE("EX902"); private final String code;