mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 03:41:10 +02:00
Shared-hono's serviceErrorHandler only translates HTTPException instances; anything else degrades to 500. Our custom Error subclasses were silently bypassing the translation layer, so a missing JWT came back as `500 Internal server error` instead of the expected `401 Unauthorized`. Confirmed in prod logs after the Phase-β deploy. Switching the error hierarchy to extend HTTPException directly. The JSON body now carries the right status code + the existing `cause` object surfaces our `code` discriminator + zod-style `details` for BadRequest. No call-site changes needed. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| drizzle | ||
| src | ||
| .gitignore | ||
| CLAUDE.md | ||
| Dockerfile | ||
| drizzle.config.ts | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
cards-server
Backend for the Cards marketplace. See
CLAUDE.md for the technical overview and
apps/cards/docs/MARKETPLACE_PLAN.md
for the full product plan.