-
Notifications
You must be signed in to change notification settings - Fork 0
Error Code
JeongHyeon Kim edited this page Nov 30, 2025
·
1 revision
{
"type": "https://your-domain.com/problem/{error-id}",
"title": "{์งง์ ์ค๋ฅ ์์ฝ}",
"status": {HTTP ์ํ ์ฝ๋},
"detail": "{์์ธ ๋ฉ์์ง}",
"instance": "{์์ฒญํ API ๊ฒฝ๋ก}",
"errorCode": "{์๋น์ค ๋ด๋ถ ๋น์ฆ๋์ค ์ฝ๋}" // ํ์ฅ ํ๋
}{
"type": "https://example.com/errors/user-not-found",
"title": "USER_NOT_FOUND",
"status": 404,
"detail": "์์ฒญํ ID์ ์ฌ์ฉ์๋ฅผ ์ฐพ์ ์ ์์ต๋๋ค.",
"instance": "/api/v1/users/123",
"errorCode": "U001"
}- type : ๋ฌธ์ํ๋ ์ค๋ฅ ์๋ณ์ URL
- title : ์งง์ ์ค๋ฅ ์ ๋ชฉ
- status : HTTP Status Code
- detail : ๋ฌธ์ ์์ธ ๋ฉ์์ง
- instance : ์ค๋ฅ๊ฐ ๋ฐ์ํ API ๊ฒฝ๋ก
- errorCode : ์๋น์ค ๋ด๋ถ ๋น์ฆ๋์ค ์ฝ๋ (์ปค์คํ ์ฝ๋ ์ ์ฉ)
| HTTP | type | errorCode | ์ค๋ช |
|---|---|---|---|
| 404 | /problem/user-not-found | U001 | USER_NOT_FOUND |
| 400 | /problem/invalid-request | C001 | INVALID_REQUEST_ERROR |