| id | SKL-error-ERRORSHAPETAXONOMY |
| name | Error Shape Taxonomy |
| description | Organization-wide standard error response format covering error codes, categories, and structure that enables clients and monitoring tools to understand errors immediately. |
| version | 1.0.0 |
| status | active |
| owner | @cerebra-team |
| last_updated | 2026-02-22 |
| category | Backend |
| tags | ["api","backend","server","database"] |
| stack | ["Python","Node.js","REST API","GraphQL"] |
| difficulty | Intermediate |
Error Shape Taxonomy
Skill Profile
(Select at least one profile to enable specific modules)
Overview
Organization-wide standard error response format covering error codes, categories, and structure that enables clients and monitoring tools to understand errors immediately.
Why This Matters
- Debuggability: รู้ทันทีว่า error มาจากไหน ทำไม
- Client handling: Frontend/mobile handle errors ได้ถูกต้อง
- Monitoring: Alert และ dashboard แยก error types ได้
- Documentation: Error catalog ที่ reference ได้
Core Concepts
Inputs / Outputs / Contracts
- Inputs:
- <e.g., env vars, request payload, file paths, schema>
- Entry Conditions:
- <Pre-requisites: e.g., Repo initialized, DB running, specific branch checked out>
- Outputs:
- <e.g., artifacts (PR diff, docs, tests, dashboard JSON)>
- Artifacts Required (Deliverables):
- <e.g., Code Diff, Unit Tests, Migration Script, API Docs>
- Acceptance Evidence:
- <e.g., Test Report (screenshot/log), Benchmark Result, Security Scan Report>
- Success Criteria:
- <e.g., p95 < 300ms, coverage ≥ 80%>
Skill Composition
- Depends on: None
- Compatible with: None
- Conflicts with: None
- Related Skills: None
Quick Start
export type = | | | | | ;
{
: {
: ;
: ;
: ;
: ;
: ;
: ;
?: ;
?: ;
?: ;
?: ;
?: <, >;
?: <{ : ; : }>;
};
}