Error handling uses ad-hoc string messages across handlers with no machine-readable codes. Add a lightweight error type that maps to consistent JSON responses ({"code": "UPSTREAM_ERROR", "message": "..."}) and separates user-facing messages from internal log details.
Error handling uses ad-hoc string messages across handlers with no machine-readable codes. Add a lightweight error type that maps to consistent JSON responses (
{"code": "UPSTREAM_ERROR", "message": "..."}) and separates user-facing messages from internal log details.