{"action":"created","issue":{"url":"https://api.github.com/repos/octokit/octokit.net/issues/1010","repository_url":"https://api.github.com/repos/octokit/octokit.net","labels_url":"https://api.github.com/repos/octokit/octokit.net/issues/1010/labels{/name}","comments_url":"https://api.github.com/repos/octokit/octokit.net/issues/1010/comments","events_url":"https://api.github.com/repos/octokit/octokit.net/issues/1010/events","html_url":"https://github.com/octokit/octokit.net/issues/1010","id":122226630,"number":1010,"title":"Octokit.NotFoundException : Not Found","user":{"login":"distantcam","id":1298847,"avatar_url":"https://avatars.githubusercontent.com/u/1298847?v=3","gravatar_id":"","url":"https://api.github.com/users/distantcam","html_url":"https://github.com/distantcam","followers_url":"https://api.github.com/users/distantcam/followers","following_url":"https://api.github.com/users/distantcam/following{/other_user}","gists_url":"https://api.github.com/users/distantcam/gists{/gist_id}","starred_url":"https://api.github.com/users/distantcam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/distantcam/subscriptions","organizations_url":"https://api.github.com/users/distantcam/orgs","repos_url":"https://api.github.com/users/distantcam/repos","events_url":"https://api.github.com/users/distantcam/events{/privacy}","received_events_url":"https://api.github.com/users/distantcam/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/octokit/octokit.net/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-15T09:16:57Z","updated_at":"2016-03-10T22:11:31Z","closed_at":null,"body":"Yes thanks for that. Don't tell me what you didn't find."},"comment":{"url":"https://api.github.com/repos/octokit/octokit.net/issues/comments/195074328","html_url":"https://github.com/octokit/octokit.net/issues/1010#issuecomment-195074328","issue_url":"https://api.github.com/repos/octokit/octokit.net/issues/1010","id":195074328,"user":{"login":"ryangribble","id":5425163,"avatar_url":"https://avatars.githubusercontent.com/u/5425163?v=3","gravatar_id":"","url":"https://api.github.com/users/ryangribble","html_url":"https://github.com/ryangribble","followers_url":"https://api.github.com/users/ryangribble/followers","following_url":"https://api.github.com/users/ryangribble/following{/other_user}","gists_url":"https://api.github.com/users/ryangribble/gists{/gist_id}","starred_url":"https://api.github.com/users/ryangribble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryangribble/subscriptions","organizations_url":"https://api.github.com/users/ryangribble/orgs","repos_url":"https://api.github.com/users/ryangribble/repos","events_url":"https://api.github.com/users/ryangribble/events{/privacy}","received_events_url":"https://api.github.com/users/ryangribble/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T22:11:31Z","updated_at":"2016-03-10T22:11:31Z","body":"The ```ApiException``` class already has properties on it that provide the message, status code, array of errors etc.\r\n\r\neg from [ApiExceptionTests.cs](https://github.com/octokit/octokit.net/blob/master/Octokit.Tests/Exceptions/ApiExceptionTests.cs#L47)\r\n``` csharp\r\n[Fact]\r\npublic void CreatesGitHubErrorFromJsonResponse()\r\n{\r\n    var response = new Response(\r\n        HttpStatusCode.GatewayTimeout,\r\n        @\"{\"\"errors\"\":[{\"\"code\"\":\"\"custom\"\",\"\"field\"\":\"\"key\"\",\"\"message\"\":\"\"key is \" +\r\n                @\"already in use\"\",\"\"resource\"\":\"\"PublicKey\"\"}],\"\"message\"\":\"\"Validation Failed\"\"}\",\r\n        new Dictionary<string, string>(),\r\n        \"application/json\"\r\n    );\r\n\r\n    var exception = new ApiException(response);\r\n\r\n    Assert.Equal(\"Validation Failed\", exception.ApiError.Message);\r\n    Assert.Equal(\"key is already in use\", exception.ApiError.Errors.First().Message);\r\n    Assert.Equal(HttpStatusCode.GatewayTimeout, exception.StatusCode);\r\n}\r\n```\r\n\r\n\r\n"}}