error-handling
Installation
SKILL.md
Error Handling
Quick Start
When handling errors:
- Never expose technical details to users
- Log errors server-side with context
- Provide user-friendly error messages
- Use appropriate HTTP status codes
- Implement error recovery when possible
Common Patterns
API Error Handling
import { NextRequest, NextResponse } from 'next/server';