Aiven-Open / Aiven-Open/klaw

Process Api Error codes in Coral to better inform a user as to why they are unable to perform an action

Offen
#2,302 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
195
Forks
77
Ø Merge
8 T. 9 Std.
Gemergte PRs (30 T.)
1

Beschreibung

# What is currently missing?
Adding stronger permission guards raised an issue where a 401 unauthorized is returned and this shows "Unexpected error" to the user.
Currently a lot of errors are returned with a 200 and a message this should be improved to register the correct api response code.
![image](https://github.com/Aiven-Open/klaw/assets/121855584/517df35f-4143-4e9c-8056-f6943172b134)

# How could this be improved?

Show the user "Not Authorized" or "Unauthorized" based off the api response.

# Is this a feature you would work on yourself?

- [ ] I plan to open a pull request for this feature

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.