Skip to content
This repository was archived by the owner on Jun 26, 2026. It is now read-only.

fix: return JSON error responses from backend - #27

Merged
matejvasek merged 1 commit into
masterfrom
backend-json-err
May 18, 2026
Merged

matejvasek merged 1 commit into
masterfrom
backend-json-err

Conversation

@matejvasek

Copy link
Copy Markdown
Collaborator

Changes

Replace http.Error (text/plain) with JSON {"message": "..."} responses. The OCP console's appFetch parses this format and surfaces the actual error text in the UI instead of a generic "Internal Server Error".

Replace http.Error (text/plain) with JSON {"message": "..."} responses.
The OCP console's appFetch parses this format and surfaces the actual
error text in the UI instead of a generic "Internal Server Error".

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@matejvasek
matejvasek requested a review from twoGiants May 18, 2026 15:50

@twoGiants twoGiants left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@matejvasek
matejvasek merged commit 1449169 into master May 18, 2026
4 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants