Annotating the controllers with ApiController attribute in ASP.NET Core 2.1 or higher will enable the behavioral options for the API’s. These behavioral options include automatic HTTP 400
Author: Javier Huthon
Javier is Content Specialist and also .NET developer. He writes helpful guides and articles, assist with other marketing and .NET community work