Skip to content

Standardize API error envelopes and validation semantics #562

Description

@grantfox-oss

Unify validation and business-error responses so clients receive deterministic error payloads across controllers, guards, and queue-driven failures.

  • Affected files: app/backend/src/main.ts, app/backend/src/common/filters/global-http-exception.filter.ts, app/backend/src/common/utils/validation-error.mapper.ts, app/backend/src/auth/guards/custom-throttler.guard.ts, app/backend/src/metrics/metrics.interceptor.ts, app/backend/src/audit/audit.service.ts, app/backend/src/marketplace/marketplace.controller.ts, app/backend/test/health.e2e-spec.ts
  • Acceptance criteria:
    • Validation errors, auth failures, rate-limit events, and domain exceptions return a consistent contract.
    • Error payloads include stable codes, human-readable messages, and trace correlation metadata.
    • Critical routes are test-covered to prevent regressions in API contract behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third CampaignenhancementNew feature or requesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions