Update index.md (#17046)
parent
ae7e234c8d
commit
67f24e8c45
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue