Skip to content

Add response.rs consistency check for error payload shape across all wired handlers #930

Description

@fejilaup-cloud

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    api-serverREST API serverbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions