From scaffolding
Standardizes error handling across frontend and backend layers with exception hierarchy, error categories, response formats, and boundary patterns.
How this skill is triggered — by the user, by Claude, or both
Slash command
/scaffolding:error-handlingThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Standards for consistent error handling across frontend and backend layers (examples in React + Python).
Standards for consistent error handling across frontend and backend layers (examples in React + Python).
| Category | HTTP Code | User Action | Log Level |
|---|---|---|---|
| Validation | 400 | Show field errors | WARN |
| Authentication | 401 | Redirect to login | WARN |
| Authorization | 403 | Show permission denied | WARN |
| NotFound | 404 | Show not found message | INFO |
| Conflict | 409 | Show conflict details | WARN |
| RateLimit | 429 | Show retry-after | WARN |
| ExternalService | 502 | Show fallback/retry option | ERROR |
| Internal | 500 | Show generic error | ERROR |
| Critical | 500 | Show maintenance page | CRITICAL |
AppException class for all application errorsValidationException - Invalid input dataAuthenticationException - Auth token invalid/expiredAuthorizationException - User lacks permissionNotFoundException - Resource doesn't existConflictException - Resource state conflictRateLimitException - Too many requestsExternalServiceException - Third-party failure{
"code": "ERROR_CODE",
"message": "Human-readable description",
"details": { "field": ["error1", "error2"] },
"correlationId": "abc-123"
}
USER_NOT_FOUND not NOT_FOUNDAUTH_TOKEN_EXPIRED, AUTH_INVALID_CREDENTIALSException without re-throwingnpx claudepluginhub komluk/scaffolding --plugin scaffoldingImplements error handling patterns: custom error hierarchies, structured logging, retry strategies, circuit breakers, and graceful degradation. Includes Express global error handler and anti-patterns checklist.
Implements standardized API error handling with RFC 7807 responses, typed error classes, middleware, and monitoring. Use for consistent HTTP errors across endpoints.
Master error handling patterns including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving reliability.