From a85f12dbea47a3d708b7e3ffe3fce81b6dfd7d38 Mon Sep 17 00:00:00 2001 From: chaejm55 Date: Mon, 21 Oct 2024 16:59:19 +0900 Subject: [PATCH] =?UTF-8?q?Feat:=20=EC=A2=8B=EC=95=84=EC=9A=94=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=83=81=ED=99=A9=EC=97=90=20=EB=8C=80=ED=95=9C=20?= =?UTF-8?q?ErrorCode=20=EC=A0=95=EC=9D=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gdsc_knu/official_homepage/exception/ErrorCode.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/gdsc_knu/official_homepage/exception/ErrorCode.java b/src/main/java/com/gdsc_knu/official_homepage/exception/ErrorCode.java index 4ef183a3..5ef45d66 100644 --- a/src/main/java/com/gdsc_knu/official_homepage/exception/ErrorCode.java +++ b/src/main/java/com/gdsc_knu/official_homepage/exception/ErrorCode.java @@ -36,6 +36,8 @@ public enum ErrorCode { // Post POST_NOT_FOUND(404, HttpStatus.NOT_FOUND, "게시글을 찾을 수 없습니다."), POST_FORBIDDEN(403, HttpStatus.FORBIDDEN, "게시글을 수정할 수 있는 권한이 없습니다."), + POST_ALREADY_LIKED(409, HttpStatus.CONFLICT, "이미 좋아요를 누른 게시글입니다."), + POST_NOT_LIKED(404, HttpStatus.NOT_FOUND, "좋아요를 누르지 않은 게시글입니다."), // Comment COMMENT_NOT_FOUND(404, HttpStatus.NOT_FOUND, "댓글을 찾을 수 없습니다."),