Skip to content

Comments

Structured error#116

Merged
Mac-5 merged 2 commits intoSynapse-bridgez:developfrom
miss-yusrah:feat/structured-error
Feb 23, 2026
Merged

Structured error#116
Mac-5 merged 2 commits intoSynapse-bridgez:developfrom
miss-yusrah:feat/structured-error

Conversation

@miss-yusrah
Copy link
Contributor

@miss-yusrah miss-yusrah commented Feb 23, 2026

Closes #101

Structured Error Codes & Error Catalog

Summary
Added machine-readable error codes to enable API consumers to programmatically handle specific failure scenarios.

Changes

  • Every AppError variant now has a unique stable error code (e.g., ERR_VALIDATION_001)
  • JSON error responses now include the code field: { "error": "message", "code": "ERR_VALIDATION_001", "status": 400 }
  • Added GET /errors endpoint returning error catalog as JSON
  • Created static error catalog at docs/error-catalog.md

@Mac-5 Mac-5 changed the base branch from main to develop February 23, 2026 05:00
@Mac-5 Mac-5 merged commit 2da50fe into Synapse-bridgez:develop Feb 23, 2026
0 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Structured Error Codes & Error Catalog (DX)

2 participants