From d84221a403a048eed7f5f4f137f07c1c65f5c5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EC=A7=80=EB=AF=BC?= Date: Wed, 3 Apr 2024 13:55:34 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20http=20status=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/exception/WakeupSongAlreadyCreatedException.java | 2 +- .../wakeupsong/domain/exception/WakeupSongExceptionCode.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dodam-core/src/main/java/b1nd/dodamcore/wakeupsong/domain/exception/WakeupSongAlreadyCreatedException.java b/dodam-core/src/main/java/b1nd/dodamcore/wakeupsong/domain/exception/WakeupSongAlreadyCreatedException.java index 859cf50f..117d91bc 100644 --- a/dodam-core/src/main/java/b1nd/dodamcore/wakeupsong/domain/exception/WakeupSongAlreadyCreatedException.java +++ b/dodam-core/src/main/java/b1nd/dodamcore/wakeupsong/domain/exception/WakeupSongAlreadyCreatedException.java @@ -4,7 +4,7 @@ import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.ResponseStatus; -@ResponseStatus(value = HttpStatus.IM_USED) +@ResponseStatus(value = HttpStatus.LOCKED) public class WakeupSongAlreadyCreatedException extends CustomException { public WakeupSongAlreadyCreatedException() { diff --git a/dodam-core/src/main/java/b1nd/dodamcore/wakeupsong/domain/exception/WakeupSongExceptionCode.java b/dodam-core/src/main/java/b1nd/dodamcore/wakeupsong/domain/exception/WakeupSongExceptionCode.java index f4bd611c..07e2d341 100644 --- a/dodam-core/src/main/java/b1nd/dodamcore/wakeupsong/domain/exception/WakeupSongExceptionCode.java +++ b/dodam-core/src/main/java/b1nd/dodamcore/wakeupsong/domain/exception/WakeupSongExceptionCode.java @@ -7,7 +7,7 @@ @RequiredArgsConstructor public enum WakeupSongExceptionCode implements ExceptionCode { - ALREADY_APPLIED(HttpStatus.IM_USED, "이미 이번주에 기상송을 신청함"), + ALREADY_APPLIED(HttpStatus.LOCKED, "이미 이번주에 기상송을 신청함"), NOT_FOUND(HttpStatus.NOT_FOUND, "없는 기상송"), NOT_APPLICANT(HttpStatus.FORBIDDEN, "신청자가 아님"), URL_MALFORMED(HttpStatus.BAD_REQUEST, "잘못된 유튜브 URL 형식");