Replies: 1 comment 1 reply
-
|
구체적 예외상황을 원인도 함께 명시할 수 있는 방법인거같네요 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Custom Error Code가 왜 필요했을까? 를 참고했습니다!
코드는
KF+ (숫자)로 표현하면 어떨까요? 숫자는 아래와 같이 구분하면 좋을 것 같습니다!도메인별 식별 번호
Auth(식별번호가 0인 경우)
예를 들어 엑세스 토큰이 만료된 경우 아래와 같이 응답이 나갑니다!
{ "code" : "KF002", "message" : "만료된 엑세스 토큰입니다.", "status" : 400 }지금 당장 모든 도메인 에러 상황마다 코드를 매기긴 힘드니 당장은 Auth에 대해서만 나타내면 좋을 것 같습니다!
Beta Was this translation helpful? Give feedback.
All reactions