Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
aindriu-aiven opened this issue Feb 14, 2024 · 0 comments

Comments

@aindriu-aiven
Copy link
Contributor

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

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
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

No branches or pull requests

1 participant