Skip to content

Commit

Permalink
fix : ErrorCode 정의
Browse files Browse the repository at this point in the history
- http 상태 코드
- 에러 메세지
  • Loading branch information
dlswns2480 committed Dec 21, 2023
1 parent c973707 commit 93e9770
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.prgrms.catchtable.common.exception;

import lombok.Getter;
import lombok.RequiredArgsConstructor;
import org.springframework.http.HttpStatus;

@Getter
@RequiredArgsConstructor
public enum ErrorCode {
NOT_EXIST_MEMBER(HttpStatus.BAD_REQUEST, "존재하지 않는 아이디입니다.");

private final HttpStatus httpStatus;
private final String message;
}

0 comments on commit 93e9770

Please sign in to comment.