Fixed the "Not Implemented" error code#2828
Conversation
tsegismont
left a comment
There was a problem hiding this comment.
Looks good to me, thank you @ppatierno
|
The compilation failure looks unrelated, I will look into it. |
|
@pk-work can you please take a look? I believe the error code is more appropriate. |
|
When #2829 is merged, this one should be rebased |
|
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. |
|
@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>
08bb13e to
2b59c6b
Compare
@tsegismont just done! sorry you already said that to me in a previous comment but I forgot :-( |
|
@tsegismont this is a breaking change and should be listed as is in 5.1 breaking change page |
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.