* Add an UnsupportedContentType to the ModelState dictionary when no formatter can read the body. * Add a filter to the pipeline that searches for that specific exception and transforms the response into 415. |
||
|---|---|---|
| .. | ||
| Microsoft.AspNetCore.Mvc | ||
| Microsoft.AspNetCore.Mvc.Abstractions | ||
| Microsoft.AspNetCore.Mvc.ApiExplorer | ||
| Microsoft.AspNetCore.Mvc.Core | ||
| Microsoft.AspNetCore.Mvc.Cors | ||
| Microsoft.AspNetCore.Mvc.DataAnnotations | ||
| Microsoft.AspNetCore.Mvc.Formatters.Json | ||
| Microsoft.AspNetCore.Mvc.Formatters.Xml | ||
| Microsoft.AspNetCore.Mvc.Localization | ||
| Microsoft.AspNetCore.Mvc.Razor | ||
| Microsoft.AspNetCore.Mvc.Razor.Host | ||
| Microsoft.AspNetCore.Mvc.TagHelpers | ||
| Microsoft.AspNetCore.Mvc.ViewFeatures | ||
| Microsoft.AspNetCore.Mvc.WebApiCompatShim | ||