Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Commented Unassigned: Allow to pass an empty ModelState into CreateErrorResponse [1091]

$
0
0
Would be nice if ```CreateErrorResponse(HttpStatusCode.BadRequest, ModelState)``` didn't throw an exception in case ModelState is empty.
Comments: Hello, and thank you for submitting this issue. We are trying to understand under what circumstance the action should return an error response but with valid ModelState. Is the expectation that it should be an error, but without any error details? Or is the expectation that it should return a success status code?

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>