diff --git a/src/main/java/org/hankki/hankkiserver/common/code/FavoriteStoreErrorCode.java b/src/main/java/org/hankki/hankkiserver/common/code/FavoriteStoreErrorCode.java index 36f6caed..26b731e5 100644 --- a/src/main/java/org/hankki/hankkiserver/common/code/FavoriteStoreErrorCode.java +++ b/src/main/java/org/hankki/hankkiserver/common/code/FavoriteStoreErrorCode.java @@ -8,7 +8,8 @@ @RequiredArgsConstructor public enum FavoriteStoreErrorCode implements ErrorCode { - FAVORITE_STORE_NOT_FOUND(HttpStatus.NOT_FOUND, "존재하지 않는 데이터입니다."); + FAVORITE_STORE_NOT_FOUND(HttpStatus.NOT_FOUND, "존재하지 않는 데이터입니다."), + FAVORITE_STORE_ALREADY_EXISTED(HttpStatus.CONFLICT, "이미 족보에 추가된 가게입니다."); private final HttpStatus httpStatus; private final String message; diff --git a/src/main/java/org/hankki/hankkiserver/common/exception/NotFoundException.java b/src/main/java/org/hankki/hankkiserver/common/exception/NotFoundException.java index a6db85a7..d85c9ae6 100644 --- a/src/main/java/org/hankki/hankkiserver/common/exception/NotFoundException.java +++ b/src/main/java/org/hankki/hankkiserver/common/exception/NotFoundException.java @@ -12,4 +12,4 @@ public NotFoundException(ErrorCode errorCode) { super(errorCode.getMessage()); this.errorCode = errorCode; } -} +} \ No newline at end of file