Problem
Error responses across the service are inconsistent. Some handlers return a plain HTTP status code with no body, others return a JSON object with an error string, and others return different field names. API consumers cannot reliably parse error responses.
Proposed Solution
Create a unified error response handler inside contract/module/error-handler/ and apply it to all existing endpoints.
Acceptance Criteria
Problem
Error responses across the service are inconsistent. Some handlers return a plain HTTP status code with no body, others return a JSON object with an error string, and others return different field names. API consumers cannot reliably parse error responses.
Proposed Solution
Create a unified error response handler inside
contract/module/error-handler/and apply it to all existing endpoints.Acceptance Criteria