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

[16.0][FIX] auth_api_key: Use 401 for unauthorized user #738

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

anusriNPS
Copy link

As per documentation, using 401 as status code seems valid for a user who is not able to be authorized. However, 403 is used for scenario where user is forbidden to access a resource. So, returning 401 instead of 403.

Copy link

@aleuffre aleuffre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the same change as #629 , I think it makes sense here as it did there.

LGTM

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

Successfully merging this pull request may close these issues.

2 participants