From 8a5330b917af253fad509ecf73dceee02109efc8 Mon Sep 17 00:00:00 2001 From: pricelees Date: Wed, 23 Jul 2025 15:10:42 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20AuthErrorCode=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EB=AF=B8=EC=82=AC=EC=9A=A9=EB=90=98=EB=8A=94=20=EC=98=88?= =?UTF-8?q?=EC=99=B8=20=EC=BD=94=EB=93=9C=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/roomescape/auth/exception/AuthErrorCode.kt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/main/kotlin/roomescape/auth/exception/AuthErrorCode.kt b/src/main/kotlin/roomescape/auth/exception/AuthErrorCode.kt index 6a502945..9ebf8853 100644 --- a/src/main/kotlin/roomescape/auth/exception/AuthErrorCode.kt +++ b/src/main/kotlin/roomescape/auth/exception/AuthErrorCode.kt @@ -8,11 +8,8 @@ enum class AuthErrorCode( override val errorCode: String, override val message: String, ): ErrorCode { - LOGIN_REQUIRED(HttpStatus.UNAUTHORIZED, "A001", "로그인이 필요해요."), - LOGIN_FAILED(HttpStatus.UNAUTHORIZED, "A002", "로그인에 실패했어요."), - TOKEN_NOT_FOUND(HttpStatus.UNAUTHORIZED, "A003", "인증 토큰이 없어요."), - INVALID_TOKEN(HttpStatus.UNAUTHORIZED, "A004", "유효하지 않은 토큰이에요."), - EXPIRED_TOKEN(HttpStatus.UNAUTHORIZED, "A005", "토큰이 만료됐어요."), - USER_NOT_FOUND_FROM_TOKEN(HttpStatus.UNAUTHORIZED, "A006", "토큰으로 회원 정보를 찾을 수 없어요."), - ACCESS_DENIED(HttpStatus.FORBIDDEN, "A007", "접근 권한이 없어요."), + TOKEN_NOT_FOUND(HttpStatus.UNAUTHORIZED, "A001", "인증 토큰이 없어요."), + INVALID_TOKEN(HttpStatus.UNAUTHORIZED, "A002", "유효하지 않은 토큰이에요."), + EXPIRED_TOKEN(HttpStatus.UNAUTHORIZED, "A003", "토큰이 만료됐어요."), + ACCESS_DENIED(HttpStatus.FORBIDDEN, "A004", "접근 권한이 없어요."), }