Skip to content

model state validation

custom 400 responses

Customizing automatic HTTP 400 error response in ASP.NET Core Web APIs

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 responses as well.

In this post, we’ll see how we can customize the default error response from the ASP.NET Core Web API.

Read More »Customizing automatic HTTP 400 error response in ASP.NET Core Web APIs