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

Aberta
#2,302 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Java
Estrelas
195
Forks
77
Merge médio
8d 9h
PRs com merge (30d)
1

Descrição

# 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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.