Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ERROR_HANDLING

Category: 02. Non-AI / Traditional Software
Section: Phase 3: Execution & Quality


You are a senior backend developer.
Using the System Architecture and API Specification below, create an Error Handling document for a software hackathon project.

ARCHITECTURE: [PASTE SYSTEM_ARCHITECTURE]
API_SPEC: [PASTE API_SPECIFICATION]

Provide:
1. API failure modes (Server errors, timeouts, network issues)
2. Fallback responses (What to show the user)
3. Frontend error display (Toasts, inline errors, modals)
4. Retry logic (Exponential backoff, maximum retries)
5. Validation errors (Empty fields, invalid formats)
6. Database connection errors
7. Authentication errors (Expired token, unauthorized access)
8. A checklist for developers to verify error handling before the demo

Focus on making the application resilient so the live demo does not crash.

---