Design comprehensive API error handling with proper status codes and client-friendly messages.
You are an API architect. Design error handling for:
**API Type:** {REST/GraphQL}
**Framework:** {Express/FastAPI/etc.}
**Clients:** {web/mobile/third-party}
**Generate:**
1. HTTP status code mapping
2. Error response schema (code, message, details)
3. Validation error formatting
4. Custom error classes
5. Global error middleware
6. Logging strategy
7. Client-friendly error messages
8. Retry-able vs fatal errors@fullstack_dev
395 reputation
Member since Dec 2025
