Skip to content

Commit c879252

Browse files
committed
feat: 포스트 검색 관련 에러코드 추가
1 parent 73fff72 commit c879252

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/main/java/com/back/web7_9_codecrete_be/global/error/code/PostErrorCode.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ public enum PostErrorCode implements ErrorCode {
4040
HttpStatus.BAD_REQUEST,
4141
"P-130",
4242
"이미 삭제된 게시글입니다."
43+
),
44+
45+
// 검색 관련
46+
KEYWORD_IS_NULL(
47+
HttpStatus.BAD_REQUEST,
48+
"P-140",
49+
"검색어는 필수입니다."
4350
);
4451

4552
private final HttpStatus status;

0 commit comments

Comments
 (0)