{"action":"opened","issue":{"url":"https://api.github.com/repos/aspnet/Mvc/issues/5604","repository_url":"https://api.github.com/repos/aspnet/Mvc","labels_url":"https://api.github.com/repos/aspnet/Mvc/issues/5604/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/Mvc/issues/5604/comments","events_url":"https://api.github.com/repos/aspnet/Mvc/issues/5604/events","html_url":"https://github.com/aspnet/Mvc/issues/5604","id":194119506,"number":5604,"title":"Why are status codes exposed everywhere as ints?","user":{"login":"danroth27","id":1874516,"avatar_url":"https://avatars.githubusercontent.com/u/1874516?v=3","gravatar_id":"","url":"https://api.github.com/users/danroth27","html_url":"https://github.com/danroth27","followers_url":"https://api.github.com/users/danroth27/followers","following_url":"https://api.github.com/users/danroth27/following{/other_user}","gists_url":"https://api.github.com/users/danroth27/gists{/gist_id}","starred_url":"https://api.github.com/users/danroth27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danroth27/subscriptions","organizations_url":"https://api.github.com/users/danroth27/orgs","repos_url":"https://api.github.com/users/danroth27/repos","events_url":"https://api.github.com/users/danroth27/events{/privacy}","received_events_url":"https://api.github.com/users/danroth27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T17:51:48Z","updated_at":"2016-12-07T17:51:48Z","closed_at":null,"body":"As originally reported by @nathan-alden in https://github.com/aspnet/Mvc/issues/5532:\r\n\r\nWhy are status codes exposed everywhere as ints? What happened to using the HttpStatusCode enum? I am aware of the StatusCodes class that contains all the status codes as constant integers, but this is not discoverable from IntelliSense; less-experienced developers are going to type in the integer, instead. At the very least, an overload should have been provided that contained the standard HTTP status codes."}}
{"actor":{"display_login":"danroth27"}}