Description: Standardizes error handling across all packages — consistent error types, HTTP status mapping, and logging — replacing whatever ad hoc handling accumulated during earlier development phases, making the codebase more predictable to extend and debug.
Acceptance criteria:
- A documented error-handling pattern exists (error types, status mapping, logging convention)
- At least the most commonly hit packages are migrated to the new pattern
Description: Standardizes error handling across all packages — consistent error types, HTTP status mapping, and logging — replacing whatever ad hoc handling accumulated during earlier development phases, making the codebase more predictable to extend and debug.
Acceptance criteria: