Skip to content

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
mpleine pushed a commit to mpleine/springdoc-openapi that referenced this pull request May 17, 2025
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