Skip to content

Getting 404 instead of 400 with versioning in routes #1049

Discussion options

You must be logged in to vote

Unfortunately, this is a fundamental change in aligning to all of the routing behaviors. This is called out in the migration guide and was previously mentioned in the release notes.

This wasn't a decision taken lightly, but there was no way around it. Not fixing the routing meant that 406 and 415 did not work properly. Without going way down into the weeds, the reason that it no longer matches/works is because the API version is part of route resolution now. If an API version doesn't match, it's very hard, if not impossible to know if the rest of the path might match in the route tree. The routing system doesn't really have a way to skip matching a route parameter temporarily to see if th…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@patrickabernathy
Comment options

Answer selected by patrickabernathy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants