.NET Core MVC Controller – Supporting more HttpStatusCodes in IActionResult responses
When I’m designing a RESTful API, I like to use the correct verbs for the correct actions, and return HTTP status codes that convey the correct message. Sure, its easy to just return a 200 OK for everything, but its a little more useful to return 204 No Content if your client shouldn’t navigate away … [Read more…]