A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/dotnet/AspNetCore.Docs/issues/12157 below:

How to log automatic 400 responses on model validation errors · Issue #12157 · dotnet/AspNetCore.Docs · GitHub

“The ApiController attribute makes model validation errors automatically trigger an HTTP 400 response.”
It is not described, does details of 400 errors logged or not?
If not, is it possible to configure error details to be logged?
Or I have to SuppressModelStateInvalidFilter = true; and do logging by myself in the block
if (!ModelState.IsValid)
{
Log (ModelState);
return BadRequest(ModelState);
}

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

mausch, mogaozq, WinThuGithub, AKlaus, Kraego and 1 more


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4