How to return JSON object when Bad Request MVC
In your Web.Config
, try to change existingResponse
to Auto
:
<httpErrors errorMode="Custom" existingResponse="Auto">
See Documentation
In your Web.Config
, try to change existingResponse
to Auto
:
<httpErrors errorMode="Custom" existingResponse="Auto">
See Documentation