Skip to content

Commit

Permalink
Merge pull request #152 from Myongji-Graduate/feat/response-code
Browse files Browse the repository at this point in the history
feat: response code 설정
  • Loading branch information
gahyuun authored Oct 18, 2024
2 parents ac8b910 + 7cb0480 commit 475558c
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions app/utils/api/constant.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export const ERROR_CODE = {
// USER
UNREGISTERED_USER: '',
INVALIDATED_STUDENT_NUMBER_TYPE: '',
INVALIDATED_PASSWORD_TPYE: '',
MISMATCHED_PASSWORD: '',
NOT_FOUND_AUTHID: '',
INVALIDATED_AUTHID_TYPE: '',
INCORRECT_PASSWORD: '',
DUPLICATED_STUDENT_NUMBER: '',
DUPLICATED_AUTHID: '',
UNSUPPORTED_STUDENT_NUMBER: '',
INVALIDATED_AUTH_TOKEN: '',

// COMMON
INTERNAL_SEVER_ERROR: '예상치 못한 에러가 발생했습니다.',

// RESULT
INVALIDATED_GRADUATION_CATEGORY: '',
UNFITTED_GRADUATION_CATEGORY: '',

// LECTURE (아래 세개 모두 PDF Parsing에서 발생하는 에러)
INCORRECT_STUDENT_NUMBER: '',
NON_EXISTED_LECTURE: '',
UNSUPPORTED_STUDENT_CATEGORY: '',
} as const;

0 comments on commit 475558c

Please sign in to comment.