Skip to content

fix: Update Response Code #2660

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

Merged

Conversation

YunByungil
Copy link
Contributor

@YunByungil YunByungil commented Jul 26, 2024

Updated the response code for login failures from 403 Frobidden to 401 UnAuthorized to more accurately reflect the correct HTTP status code for authentication failures.

Changes include:

  • Response code adjustment in OpenAPI Customizer

This improves code readability and ensures proper HTTP status code usage.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status#client_error_responses
image

Updated the response code for login failures from 403 Frobidden to 401 UnAuthorized to more accurately reflect the correct HTTP status code for authentication failures.
Updated the response code for login failures from 403 Frobidden to 401 UnAuthorized to more accurately reflect the correct HTTP status code for authentication failures.
@bnasslahsen bnasslahsen merged commit c2d47b2 into springdoc:main Sep 16, 2024
1 check failed
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.

None yet

2 participants