What is the proper way to send an HTTP 404 response from an ASP.NET MVC action?

前端 未结 6 697
春和景丽
春和景丽 2020-12-02 06:25

If given the route:

{FeedName}/{ItemPermalink}

ex: /Blog/Hello-World

If the item doesn\'t exist, I want to return a 404. What is the

6条回答
提交回复
热议问题