Task: Standardize API Error Response Shape #343
Labels
No labels
accessibility
api
auth.js
backend
copy
database
defect
dependencies
design
discussion
documentation
duplicate
enhancement
epic
feature
front-end
good first issue
help wanted
invalid
next.js
noscript
on hold
operations
optimization
postgresql
prisma
prototype
question
react
spike
stale
story
tailwind
vulnerability
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
SSE/WebsiteTheSSEquel#343
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Standardize API Error Response Shape
Description
API routes return errors in inconsistent formats: some use plain text Response bodies, some use Response.json(), some expose raw database error objects via string interpolation (e.g. return new Response("Failed: " + e, { status: 500 })). This leaks internal details and makes client-side error handling fragile.
Associated Epic: #340
Subtasks
Acceptance Criteria