Skip to content

fix(api): hide internal error detail from 5xx responses#254

Open
samcm wants to merge 2 commits into
masterfrom
fix/sanitize-5xx-errors
Open

fix(api): hide internal error detail from 5xx responses#254
samcm wants to merge 2 commits into
masterfrom
fix/sanitize-5xx-errors

Conversation

@samcm

@samcm samcm commented Jun 12, 2026

Copy link
Copy Markdown
Member

The request wrapper wrote the raw internal err.Error() string into every error response, including 5xx errors that surface provider and marshalling internals to clients.

5xx responses now return a generic status message (e.g. "Internal Server Error") while the real error is logged server-side with the request path. Client errors (4xx) keep their original message since it's actionable feedback like "invalid block ID".

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.

1 participant