{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/4311","repository_url":"https://api.github.com/repos/aspnet/Mvc","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/4311/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/4311/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/4311/events","html_url":"https://github.com/aspnet/Mvc/issues/4311","id":141845640,"number":4311,"title":"Why no HttpResponseException?","user":{"login":"markrendle","id":178242,"avatar_url":"https://avatars.githubusercontent.com/u/178242?v=3","gravatar_id":"","url":"https://api.github.com/users/markrendle","html_url":"https://github.com/markrendle","followers_url":"https://api.github.com/users/markrendle/followers","following_url":"https://api.github.com/users/markrendle/following{/other_user}","gists_url":"https://api.github.com/users/markrendle/gists{/gist_id}","starred_url":"https://api.github.com/users/markrendle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markrendle/subscriptions","organizations_url":"https://api.github.com/users/markrendle/orgs","repos_url":"https://api.github.com/users/markrendle/repos","events_url":"https://api.github.com/users/markrendle/events{/privacy}","received_events_url":"https://api.github.com/users/markrendle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-18T11:50:46Z","updated_at":"2016-03-18T11:58:57Z","closed_at":null,"body":"I know it's in the Web API shim, but why is there no equivalent (that I can find) in Core MVC? It was a very useful way of returning 404s from methods that return `Task<Spaceship>`.\r\n\r\nI can patch one in myself easily enough with some middleware, so I wondered if there was a major performance issue or something that led to it being removed."},"comment":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/comments/198324107","html_url":"https://github.com/aspnet/Mvc/issues/4311#issuecomment-198324107","issue_url":"https://api.github.com/repos/aspnet/Mvc/issues/4311","id":198324107,"user":{"login":"davidfowl","id":95136,"avatar_url":"https://avatars.githubusercontent.com/u/95136?v=3","gravatar_id":"","url":"https://api.github.com/users/davidfowl","html_url":"https://github.com/davidfowl","followers_url":"https://api.github.com/users/davidfowl/followers","following_url":"https://api.github.com/users/davidfowl/following{/other_user}","gists_url":"https://api.github.com/users/davidfowl/gists{/gist_id}","starred_url":"https://api.github.com/users/davidfowl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidfowl/subscriptions","organizations_url":"https://api.github.com/users/davidfowl/orgs","repos_url":"https://api.github.com/users/davidfowl/repos","events_url":"https://api.github.com/users/davidfowl/events{/privacy}","received_events_url":"https://api.github.com/users/davidfowl/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T11:58:56Z","updated_at":"2016-03-18T11:58:56Z","body":"Just the classic, \"we don't want people using exceptions for control flow\" paradigm. People did things like use it from within their business logic which is all sorts of wrong. I can't speak to the performance issues because I haven't measured but throwing an exception that is meant to be caught to get some data is worse than just returning that result."}}