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

APIs that raise KeyErrors return 401s #42

Open
The-Bees opened this issue Nov 6, 2018 · 0 comments
Open

APIs that raise KeyErrors return 401s #42

The-Bees opened this issue Nov 6, 2018 · 0 comments

Comments

@The-Bees
Copy link
Collaborator

The-Bees commented Nov 6, 2018

The way ramlwrap catches KeyErrors in utils/validation/Endpoint.serve means that if an API throws a KeyError, it will be caught here and a 401 status code will be returned. It should catch the KeyError for a missing method mapping seperately, so that the API's key error will eventually result in a 500 status code.

@The-Bees The-Bees added the bug label Nov 6, 2018
@jmons jmons added the V2.X label Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants