# Resilient Error Handling & Fault Tolerance

> Comprehensive error handling strategy across frontend and backend, with typed error classes, graceful fallback states, and structured error logs.

Canonical: https://www.agentickit.co/skills/error-handling
Last updated: 2026-11-18

## Key practices
- Define custom Error subclasses with HTTP status codes and machine-readable error codes
- Wrap asynchronous operations in try-catch blocks with explicit fallback responses
- Catch uncaught UI render errors with React ErrorBoundary components
- Log errors with contextual metadata (user ID, request ID, timestamp) in structured JSON

## Related
- [debugger](https://www.agentickit.co/agents/debugger)
- [sre-engineer](https://www.agentickit.co/agents/sre-engineer)
- [backend-architect](https://www.agentickit.co/agents/backend-architect)
- [/fix](https://www.agentickit.co/commands/fix)
- [/audit](https://www.agentickit.co/commands/audit)
