Labels: bug, api-server
Priority: Medium
Estimated Time: 1.5 hours
Description:
Once #36-#47 wire real contract errors through, and #49 adds an error-to-status mapping table, confirm response.rs's error envelope (fields like code, message, details) is applied uniformly rather than each handler constructing its own ad hoc error body.
Tasks:
- Define one canonical error response struct in
response.rs
- Update all handlers to use it exclusively
- Add a test asserting every error response across every endpoint matches the canonical shape
Labels:
bug,api-serverPriority: Medium
Estimated Time: 1.5 hours
Description:
Once #36-#47 wire real contract errors through, and #49 adds an error-to-status mapping table, confirm
response.rs's error envelope (fields likecode,message,details) is applied uniformly rather than each handler constructing its own ad hoc error body.Tasks:
response.rs