공통 응답 형식 관련 요청사항 #10
Closed
Chiman2937
started this conversation in
General
Replies: 1 comment
-
|
공통 응답 Success쪽 필드명 및 타입 변경되었습니다. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
현재 공통 응답/예외 응답 구조가 아래와 같이 정의 되어있는데요,
status code 필드 이름을 동일하게 가는 게 좋을 것 같아요
status (number) 로 통일 가능할까요?
🟦 공통 응답 형식 (Success)
{ "code": "201", // status로 변경 "message": "요청이 정상적으로 처리되었습니다.", "data": { ... } }🟥 공통 예외 응답 구조 (RFC 9457 기반)
{ "type": "https://your-domain.com/problem/{error-id}", "title": "{짧은 오류 요약}", "status": {HTTP 상태 코드}, "detail": "{상세 메시지}", "instance": "{요청한 API 경로}", "errorCode": "{서비스 내부 비즈니스 코드}" // 확장 필드 }Beta Was this translation helpful? Give feedback.
All reactions