Enable append custom data for “BadRequest”. #9992
Labels
area-mvc
Includes: MVC, Actions and Controllers, Localization, CORS, most templates
✔️ Resolution: Duplicate
Resolved as a duplicate of another issue
For
BadRequest
in Asp.Net Core Web API 2.2, it will produce “ProblemDetails” response like:Code:
Response:
But, for
BadRequest(new { errors = errors });
, it will returnerrors
without “ProblemDetails” likeCode:
Response:
I apply for it will return with
ProblemDetails
The text was updated successfully, but these errors were encountered: