← Back to list

error-handling
by jhlee0409
세상에서 가장 맛있는 사이드 프로젝트 레스토랑
⭐ 0🍴 0📅 Jan 3, 2026
SKILL.md
name: error-handling description: 일관된 에러 처리와 로깅 패턴을 구현합니다. API 에러 응답, 예외 처리, 에러 바운더리, 사용자 친화적 메시지 작성 시 사용하세요. 서버와 클라이언트 양쪽의 에러 처리 전략을 포함합니다. allowed-tools: Read, Glob, Grep
Error Handling Skill
Instructions
- Use consistent HTTP status codes
- Return Korean error messages to users
- Log detailed errors server-side only
- Handle
ApiErrorclass on client-side
Status Code Quick Reference
| Code | Use Case | Message |
|---|---|---|
| 400 | Invalid input | 입력 정보를 확인해주세요. |
| 401 | Auth required | 인증이 필요합니다. |
| 403 | No permission | 권한이 없습니다. |
| 404 | Not found | 찾을 수 없습니다. |
| 429 | Rate limit | 요청이 너무 많습니다. |
| 500 | Server error | 서버 오류가 발생했습니다. |
Server-Side Pattern
try {
// logic
} catch (error) {
console.error('[API] POST /api/endpoint error:', error)
return NextResponse.json({ error: '서버 오류가 발생했습니다.' }, { status: 500 })
}
For complete patterns (client error handling, toast helpers, retry logic, error messages), see reference.md.
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon