Skip to content

ASP.NET Core Controller Should Return 400 Instead of 404 #20

Closed
@commonsensesoftware

Description

@commonsensesoftware

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.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions