Skip to content

Commit

Permalink
Feat: 좋아요 오류 상황에 대한 ErrorCode 정의
Browse files Browse the repository at this point in the history
  • Loading branch information
chaejm55 committed Oct 21, 2024
1 parent c13db87 commit a85f12d
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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, "댓글을 찾을 수 없습니다."),
Expand Down

0 comments on commit a85f12d

Please sign in to comment.