Closed
Description
When an ASP.NET Core route that also uses URL segment API versioning could be matched, but no route matches the specified the API version, then the controller should return 400 instead of 404.
For example:
/v1/orders
This route exists and returns 200.
/v2/orders
This route does not exist, but the route ~/v{version}/orders
could exist. The response in this case should be 400 and not 404.