Update index.md (#17046)

pull/17051/head
Pranav K 2020-02-18 20:01:18 -08:00 committed by GitHub
parent ae7e234c8d
commit 67f24e8c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -376,7 +376,7 @@ The `NotFound` method produces an HTTP 404 status code with a `ProblemDetails` b
### Disable ProblemDetails response
The automatic creation of a `ProblemDetails` instance is disabled when the <xref:Microsoft.AspNetCore.Mvc.ApiBehaviorOptions.SuppressMapClientErrors%2A> property is set to `true`. Add the following code in `Startup.ConfigureServices`:
The automatic creation of a `ProblemDetails` for error status codes is disabled when the <xref:Microsoft.AspNetCore.Mvc.ApiBehaviorOptions.SuppressMapClientErrors%2A> property is set to `true`. Add the following code in `Startup.ConfigureServices`:
::: moniker-end