Skip to content

Commit

Permalink
feat: 에러코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
SangWoon123 committed Jun 3, 2024
1 parent cb297f3 commit f0f17bc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/main/java/com/tukorea/planding/global/error/ErrorCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,21 @@
@AllArgsConstructor
public enum ErrorCode {

/**
* 잘못된 URL Error
*/

INVALID_URL("CLIENT-001", "잘못된 URL 입니다.", HttpStatus.BAD_REQUEST),
INVALID_REQUEST("CLIENT-002", "잘못된 형식 입니다.", HttpStatus.BAD_REQUEST),
INTERNAL_SERVER_ERROR("SERVER-001", "서버 문제 입니다.", HttpStatus.INTERNAL_SERVER_ERROR),


/**
* JWT Error
*/
INVALID_AUTH_TOKEN("JWT-001", "토큰이 존재하지 않습니다.", HttpStatus.NOT_FOUND),
EXPIRED_AUTH_TOKEN("JWT-002", "만료된 토큰 입니다.", HttpStatus.UNAUTHORIZED),

/**
* User Error
*/
Expand All @@ -18,6 +33,7 @@ public enum ErrorCode {
*/
SCHEDULE_NOT_FOUND("SCHEDULE-001", "해당 스케줄은 존재하지 않습니다.", HttpStatus.NOT_FOUND),
UNAUTHORIZED_SCHEDULE("SCHEDULE-002", "본 사용자는 스케줄에 권한이 없습니다.", HttpStatus.UNAUTHORIZED),
INVALID_SCHEDULE_TIME("SCHEDULE-003", "스케줄 시간을 확인해 주세요.", HttpStatus.BAD_REQUEST),

/**
* Group Error
Expand Down

0 comments on commit f0f17bc

Please sign in to comment.