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

Answer with a 400 if the macaroon is malformed instead of a 500 #5

Open
urcadox opened this issue Mar 20, 2018 · 3 comments
Open

Answer with a 400 if the macaroon is malformed instead of a 500 #5

urcadox opened this issue Mar 20, 2018 · 3 comments
Labels
bug Something isn't working

Comments

@urcadox
Copy link
Contributor

urcadox commented Mar 20, 2018

The macaroons lib throws an exception if the macaroon is malformed which is not caught.

@FlorentinDUBOIS
Copy link

May be it will be better to answer with a 401 HTTP Code ?

@FlorentinDUBOIS FlorentinDUBOIS added the bug Something isn't working label Mar 20, 2018
@urcadox
Copy link
Contributor Author

urcadox commented Mar 20, 2018 via email

@FlorentinDUBOIS
Copy link

It works to me. This way to answer the client is quite relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants