Skip to content

Fixed the "Not Implemented" error code#2828

Merged
tsegismont merged 2 commits intovert-x3:masterfrom
ppatierno:fix-router-builder-not-implemeted-error
Nov 20, 2025
Merged

Fixed the "Not Implemented" error code#2828
tsegismont merged 2 commits intovert-x3:masterfrom
ppatierno:fix-router-builder-not-implemeted-error

Conversation

@ppatierno
Copy link
Copy Markdown
Member

This trivial PR fixes the wrong HTTP error code to be returned when an OpenAPI endpoint is "not implemented".
It should be 501 instead of 503 which is "service unavailable" instead.

Copy link
Copy Markdown
Member

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

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

Looks good to me, thank you @ppatierno

@tsegismont tsegismont requested a review from pk-work November 19, 2025 09:49
@tsegismont
Copy link
Copy Markdown
Member

The compilation failure looks unrelated, I will look into it.

@tsegismont
Copy link
Copy Markdown
Member

@pk-work can you please take a look?

I believe the error code is more appropriate.

@tsegismont
Copy link
Copy Markdown
Member

When #2829 is merged, this one should be rebased

Copy link
Copy Markdown
Contributor

@pk-work pk-work left a comment

Choose a reason for hiding this comment

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

Good catch!

@pk-work
Copy link
Copy Markdown
Contributor

pk-work commented Nov 19, 2025

I'm wondering if we don't have a test for that. Maybe we should add one

@ppatierno
Copy link
Copy Markdown
Member Author

I'm wondering if we don't have a test for that. Maybe we should add one

@pk-work I added a few tests, let me know if they are ok.

@tsegismont
Copy link
Copy Markdown
Member

@ppatierno can you please rebase the PR? #2829 has been merged

Signed-off-by: Paolo Patierno <ppatierno@live.com>
Signed-off-by: Paolo Patierno <ppatierno@live.com>
@ppatierno ppatierno force-pushed the fix-router-builder-not-implemeted-error branch from 08bb13e to 2b59c6b Compare November 20, 2025 17:07
@ppatierno
Copy link
Copy Markdown
Member Author

@ppatierno can you please rebase the PR? #2829 has been merged

@tsegismont just done! sorry you already said that to me in a previous comment but I forgot :-(

Copy link
Copy Markdown
Member

@tsegismont tsegismont left a comment

Choose a reason for hiding this comment

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

Thank you @ppatierno !

@tsegismont tsegismont merged commit 1536980 into vert-x3:master Nov 20, 2025
10 of 13 checks passed
@vietj
Copy link
Copy Markdown
Contributor

vietj commented Nov 20, 2025

@tsegismont this is a breaking change and should be listed as is in 5.1 breaking change page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants