Skip to content

Fix/overrides error type handling#7410

Open
friedrichg wants to merge 2 commits intomasterfrom
fix/overrides-error-type-handling
Open

Fix/overrides error type handling#7410
friedrichg wants to merge 2 commits intomasterfrom
fix/overrides-error-type-handling

Conversation

@friedrichg
Copy link
Copy Markdown
Member

What this PR does: Fix/overrides error type handling

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Replace string-based error matching with typed sentinel errors
(ErrNotFound, ErrAccessDenied, ErrInvalidOverrides) and return
appropriate HTTP status codes (404, 403, 400) instead of generic
400/500 responses. Pass actual error messages in HTTP responses
for better client-side debugging.

Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
Signed-off-by: Friedrich Gonzalez <1517449+friedrichg@users.noreply.github.com>
@dosubot dosubot bot added the type/bug label Apr 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant