{"action":"created","comment":{"url":"https://api.github.com/repos/NancyFx/Nancy/pulls/comments/64730743","id":64730743,"diff_hunk":"@@ -340,6 +340,45 @@ public void HandleRequest_should_get_context_from_context_factory()\n         }\r\n \r\n         [Fact]\r\n+        public async Task Should_catch_exception_inside_status_code_handler_and_return_default_error_response()\r\n+        {\r\n+            // Given\r\n+            A.CallTo(() => this.requestDispatcher.Dispatch(A<NancyContext>.Ignored, A<CancellationToken>.Ignored))\r\n+                .Returns(new Response() { StatusCode = HttpStatusCode.InternalServerError });\r\n+\r\n+            var engine =\r\n+                new NancyEngine(this.requestDispatcher, this.contextFactory, new[] { this.statusCodeHandler, new DefaultStatusCodeHandler(this.negotiator, this.environment), }, A.Fake<IRequestTracing>(), new DisabledStaticContentProvider(), this.negotiator, this.environment)\r","path":"test/Nancy.Tests/Unit/NancyEngineFixture.cs","position":null,"original_position":11,"commit_id":"9fd35cb69ea0266b55f9c7b6f0500f488a6d8aa4","original_commit_id":"8c77567d6693d5534f5a885e3f119305ec82718a","user":{"login":"jchannon","id":105126,"avatar_url":"https://avatars.githubusercontent.com/u/105126?v=3","gravatar_id":"","url":"https://api.github.com/users/jchannon","html_url":"https://github.com/jchannon","followers_url":"https://api.github.com/users/jchannon/followers","following_url":"https://api.github.com/users/jchannon/following{/other_user}","gists_url":"https://api.github.com/users/jchannon/gists{/gist_id}","starred_url":"https://api.github.com/users/jchannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchannon/subscriptions","organizations_url":"https://api.github.com/users/jchannon/orgs","repos_url":"https://api.github.com/users/jchannon/repos","events_url":"https://api.github.com/users/jchannon/events{/privacy}","received_events_url":"https://api.github.com/users/jchannon/received_events","type":"User","site_admin":false},"body":"Done 😄 ","created_at":"2016-05-26T11:34:33Z","updated_at":"2016-05-26T11:34:33Z","html_url":"https://github.com/NancyFx/Nancy/pull/2457#discussion_r64730743","pull_request_url":"https://api.github.com/repos/NancyFx/Nancy/pulls/2457","_links":{"self":{"href":"https://api.github.com/repos/NancyFx/Nancy/pulls/comments/64730743"},"html":{"href":"https://github.com/NancyFx/Nancy/pull/2457#discussion_r64730743"},"pull_request":{"href":"https://api.github.com/repos/NancyFx/Nancy/pulls/2457"}}},"pull_request":{"url":"https://api.github.com/repos/NancyFx/Nancy/pulls/2457","id":71472246,"html_url":"https://github.com/NancyFx/Nancy/pull/2457","diff_url":"https://github.com/NancyFx/Nancy/pull/2457.diff","patch_url":"https://github.com/NancyFx/Nancy/pull/2457.patch","issue_url":"https://api.github.com/repos/NancyFx/Nancy/issues/2457","number":2457,"state":"open","locked":false,"title":"Catch calls to statuscode handler and write error response if caught","user":{"login":"jchannon","id":105126,"avatar_url":"https://avatars.githubusercontent.com/u/105126?v=3","gravatar_id":"","url":"https://api.github.com/users/jchannon","html_url":"https://github.com/jchannon","followers_url":"https://api.github.com/users/jchannon/followers","following_url":"https://api.github.com/users/jchannon/following{/other_user}","gists_url":"https://api.github.com/users/jchannon/gists{/gist_id}","starred_url":"https://api.github.com/users/jchannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchannon/subscriptions","organizations_url":"https://api.github.com/users/jchannon/orgs","repos_url":"https://api.github.com/users/jchannon/repos","events_url":"https://api.github.com/users/jchannon/events{/privacy}","received_events_url":"https://api.github.com/users/jchannon/received_events","type":"User","site_admin":false},"body":"### Prerequisites\r\n\r\n- [x] I have written a descriptive pull-request title\r\n- [x] I have verified that there are no overlapping [pull-requests](https://github.com/NancyFx/Nancy/pulls) open\r\n- [x] I have verified that I am following the Nancy [code style guidelines](https://github.com/NancyFx/Nancy/blob/45238076ad0b7f6ecabd6bae8469e30458d02efe/CONTRIBUTING.md#style-guidelines)\r\n- [ ] I have provided test coverage for my change (where applicable)\r\n\r\n### Description\r\nAddresses #1594 This can be merged or #2456 instead.\r\n\r\n","created_at":"2016-05-25T22:17:21Z","updated_at":"2016-05-26T11:34:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7065ace4db775b41056218c69ead61fc4feb2ac","assignee":null,"milestone":{"url":"https://api.github.com/repos/NancyFx/Nancy/milestones/47","html_url":"https://github.com/NancyFx/Nancy/milestones/2.0-beta","labels_url":"https://api.github.com/repos/NancyFx/Nancy/milestones/47/labels","id":1659400,"number":47,"title":"2.0-beta","description":"","creator":{"login":"khellang","id":582487,"avatar_url":"https://avatars.githubusercontent.com/u/582487?v=3","gravatar_id":"","url":"https://api.github.com/users/khellang","html_url":"https://github.com/khellang","followers_url":"https://api.github.com/users/khellang/followers","following_url":"https://api.github.com/users/khellang/following{/other_user}","gists_url":"https://api.github.com/users/khellang/gists{/gist_id}","starred_url":"https://api.github.com/users/khellang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/khellang/subscriptions","organizations_url":"https://api.github.com/users/khellang/orgs","repos_url":"https://api.github.com/users/khellang/repos","events_url":"https://api.github.com/users/khellang/events{/privacy}","received_events_url":"https://api.github.com/users/khellang/received_events","type":"User","site_admin":false},"open_issues":20,"closed_issues":31,"state":"open","created_at":"2016-03-22T10:26:19Z","updated_at":"2016-05-26T10:26:24Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/NancyFx/Nancy/pulls/2457/commits","review_comments_url":"https://api.github.com/repos/NancyFx/Nancy/pulls/2457/comments","review_comment_url":"https://api.github.com/repos/NancyFx/Nancy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NancyFx/Nancy/issues/2457/comments","statuses_url":"https://api.github.com/repos/NancyFx/Nancy/statuses/9fd35cb69ea0266b55f9c7b6f0500f488a6d8aa4","head":{"label":"jchannon:statuscodehandlercatch","ref":"statuscodehandlercatch","sha":"9fd35cb69ea0266b55f9c7b6f0500f488a6d8aa4","user":{"login":"jchannon","id":105126,"avatar_url":"https://avatars.githubusercontent.com/u/105126?v=3","gravatar_id":"","url":"https://api.github.com/users/jchannon","html_url":"https://github.com/jchannon","followers_url":"https://api.github.com/users/jchannon/followers","following_url":"https://api.github.com/users/jchannon/following{/other_user}","gists_url":"https://api.github.com/users/jchannon/gists{/gist_id}","starred_url":"https://api.github.com/users/jchannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchannon/subscriptions","organizations_url":"https://api.github.com/users/jchannon/orgs","repos_url":"https://api.github.com/users/jchannon/repos","events_url":"https://api.github.com/users/jchannon/events{/privacy}","received_events_url":"https://api.github.com/users/jchannon/received_events","type":"User","site_admin":false},"repo":{"id":4134555,"name":"Nancy","full_name":"jchannon/Nancy","owner":{"login":"jchannon","id":105126,"avatar_url":"https://avatars.githubusercontent.com/u/105126?v=3","gravatar_id":"","url":"https://api.github.com/users/jchannon","html_url":"https://github.com/jchannon","followers_url":"https://api.github.com/users/jchannon/followers","following_url":"https://api.github.com/users/jchannon/following{/other_user}","gists_url":"https://api.github.com/users/jchannon/gists{/gist_id}","starred_url":"https://api.github.com/users/jchannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jchannon/subscriptions","organizations_url":"https://api.github.com/users/jchannon/orgs","repos_url":"https://api.github.com/users/jchannon/repos","events_url":"https://api.github.com/users/jchannon/events{/privacy}","received_events_url":"https://api.github.com/users/jchannon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jchannon/Nancy","description":"Nancy is a lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono","fork":true,"url":"https://api.github.com/repos/jchannon/Nancy","forks_url":"https://api.github.com/repos/jchannon/Nancy/forks","keys_url":"https://api.github.com/repos/jchannon/Nancy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jchannon/Nancy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jchannon/Nancy/teams","hooks_url":"https://api.github.com/repos/jchannon/Nancy/hooks","issue_events_url":"https://api.github.com/repos/jchannon/Nancy/issues/events{/number}","events_url":"https://api.github.com/repos/jchannon/Nancy/events","assignees_url":"https://api.github.com/repos/jchannon/Nancy/assignees{/user}","branches_url":"https://api.github.com/repos/jchannon/Nancy/branches{/branch}","tags_url":"https://api.github.com/repos/jchannon/Nancy/tags","blobs_url":"https://api.github.com/repos/jchannon/Nancy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jchannon/Nancy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jchannon/Nancy/git/refs{/sha}","trees_url":"https://api.github.com/repos/jchannon/Nancy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jchannon/Nancy/statuses/{sha}","languages_url":"https://api.github.com/repos/jchannon/Nancy/languages","stargazers_url":"https://api.github.com/repos/jchannon/Nancy/stargazers","contributors_url":"https://api.github.com/repos/jchannon/Nancy/contributors","subscribers_url":"https://api.github.com/repos/jchannon/Nancy/subscribers","subscription_url":"https://api.github.com/repos/jchannon/Nancy/subscription","commits_url":"https://api.github.com/repos/jchannon/Nancy/commits{/sha}","git_commits_url":"https://api.github.com/repos/jchannon/Nancy/git/commits{/sha}","comments_url":"https://api.github.com/repos/jchannon/Nancy/comments{/number}","issue_comment_url":"https://api.github.com/repos/jchannon/Nancy/issues/comments{/number}","contents_url":"https://api.github.com/repos/jchannon/Nancy/contents/{+path}","compare_url":"https://api.github.com/repos/jchannon/Nancy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jchannon/Nancy/merges","archive_url":"https://api.github.com/repos/jchannon/Nancy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jchannon/Nancy/downloads","issues_url":"https://api.github.com/repos/jchannon/Nancy/issues{/number}","pulls_url":"https://api.github.com/repos/jchannon/Nancy/pulls{/number}","milestones_url":"https://api.github.com/repos/jchannon/Nancy/milestones{/number}","notifications_url":"https://api.github.com/repos/jchannon/Nancy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jchannon/Nancy/labels{/name}","releases_url":"https://api.github.com/repos/jchannon/Nancy/releases{/id}","deployments_url":"https://api.github.com/repos/jchannon/Nancy/deployments","created_at":"2012-04-25T08:48:08Z","updated_at":"2015-06-09T16:28:50Z","pushed_at":"2016-05-26T11:30:58Z","git_url":"git://github.com/jchannon/Nancy.git","ssh_url":"git@github.com:jchannon/Nancy.git","clone_url":"https://github.com/jchannon/Nancy.git","svn_url":"https://github.com/jchannon/Nancy","homepage":"http://nancyfx.org","size":44456,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NancyFx:master","ref":"master","sha":"79ff386a2a5da51ca767f67968aa63da87bc616b","user":{"login":"NancyFx","id":706659,"avatar_url":"https://avatars.githubusercontent.com/u/706659?v=3","gravatar_id":"","url":"https://api.github.com/users/NancyFx","html_url":"https://github.com/NancyFx","followers_url":"https://api.github.com/users/NancyFx/followers","following_url":"https://api.github.com/users/NancyFx/following{/other_user}","gists_url":"https://api.github.com/users/NancyFx/gists{/gist_id}","starred_url":"https://api.github.com/users/NancyFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NancyFx/subscriptions","organizations_url":"https://api.github.com/users/NancyFx/orgs","repos_url":"https://api.github.com/users/NancyFx/repos","events_url":"https://api.github.com/users/NancyFx/events{/privacy}","received_events_url":"https://api.github.com/users/NancyFx/received_events","type":"Organization","site_admin":false},"repo":{"id":738250,"name":"Nancy","full_name":"NancyFx/Nancy","owner":{"login":"NancyFx","id":706659,"avatar_url":"https://avatars.githubusercontent.com/u/706659?v=3","gravatar_id":"","url":"https://api.github.com/users/NancyFx","html_url":"https://github.com/NancyFx","followers_url":"https://api.github.com/users/NancyFx/followers","following_url":"https://api.github.com/users/NancyFx/following{/other_user}","gists_url":"https://api.github.com/users/NancyFx/gists{/gist_id}","starred_url":"https://api.github.com/users/NancyFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NancyFx/subscriptions","organizations_url":"https://api.github.com/users/NancyFx/orgs","repos_url":"https://api.github.com/users/NancyFx/repos","events_url":"https://api.github.com/users/NancyFx/events{/privacy}","received_events_url":"https://api.github.com/users/NancyFx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/NancyFx/Nancy","description":"Lightweight, low-ceremony, framework for building HTTP based services on .Net and Mono","fork":false,"url":"https://api.github.com/repos/NancyFx/Nancy","forks_url":"https://api.github.com/repos/NancyFx/Nancy/forks","keys_url":"https://api.github.com/repos/NancyFx/Nancy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NancyFx/Nancy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NancyFx/Nancy/teams","hooks_url":"https://api.github.com/repos/NancyFx/Nancy/hooks","issue_events_url":"https://api.github.com/repos/NancyFx/Nancy/issues/events{/number}","events_url":"https://api.github.com/repos/NancyFx/Nancy/events","assignees_url":"https://api.github.com/repos/NancyFx/Nancy/assignees{/user}","branches_url":"https://api.github.com/repos/NancyFx/Nancy/branches{/branch}","tags_url":"https://api.github.com/repos/NancyFx/Nancy/tags","blobs_url":"https://api.github.com/repos/NancyFx/Nancy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NancyFx/Nancy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NancyFx/Nancy/git/refs{/sha}","trees_url":"https://api.github.com/repos/NancyFx/Nancy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NancyFx/Nancy/statuses/{sha}","languages_url":"https://api.github.com/repos/NancyFx/Nancy/languages","stargazers_url":"https://api.github.com/repos/NancyFx/Nancy/stargazers","contributors_url":"https://api.github.com/repos/NancyFx/Nancy/contributors","subscribers_url":"https://api.github.com/repos/NancyFx/Nancy/subscribers","subscription_url":"https://api.github.com/repos/NancyFx/Nancy/subscription","commits_url":"https://api.github.com/repos/NancyFx/Nancy/commits{/sha}","git_commits_url":"https://api.github.com/repos/NancyFx/Nancy/git/commits{/sha}","comments_url":"https://api.github.com/repos/NancyFx/Nancy/comments{/number}","issue_comment_url":"https://api.github.com/repos/NancyFx/Nancy/issues/comments{/number}","contents_url":"https://api.github.com/repos/NancyFx/Nancy/contents/{+path}","compare_url":"https://api.github.com/repos/NancyFx/Nancy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NancyFx/Nancy/merges","archive_url":"https://api.github.com/repos/NancyFx/Nancy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NancyFx/Nancy/downloads","issues_url":"https://api.github.com/repos/NancyFx/Nancy/issues{/number}","pulls_url":"https://api.github.com/repos/NancyFx/Nancy/pulls{/number}","milestones_url":"https://api.github.com/repos/NancyFx/Nancy/milestones{/number}","notifications_url":"https://api.github.com/repos/NancyFx/Nancy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NancyFx/Nancy/labels{/name}","releases_url":"https://api.github.com/repos/NancyFx/Nancy/releases{/id}","deployments_url":"https://api.github.com/repos/NancyFx/Nancy/deployments","created_at":"2010-06-24T19:35:22Z","updated_at":"2016-05-25T11:29:25Z","pushed_at":"2016-05-26T11:30:59Z","git_url":"git://github.com/NancyFx/Nancy.git","ssh_url":"git@github.com:NancyFx/Nancy.git","clone_url":"https://github.com/NancyFx/Nancy.git","svn_url":"https://github.com/NancyFx/Nancy","homepage":"http://nancyfx.org","size":64481,"stargazers_count":4072,"watchers_count":4072,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1054,"mirror_url":null,"open_issues_count":147,"forks":1054,"open_issues":147,"watchers":4072,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NancyFx/Nancy/pulls/2457"},"html":{"href":"https://github.com/NancyFx/Nancy/pull/2457"},"issue":{"href":"https://api.github.com/repos/NancyFx/Nancy/issues/2457"},"comments":{"href":"https://api.github.com/repos/NancyFx/Nancy/issues/2457/comments"},"review_comments":{"href":"https://api.github.com/repos/NancyFx/Nancy/pulls/2457/comments"},"review_comment":{"href":"https://api.github.com/repos/NancyFx/Nancy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NancyFx/Nancy/pulls/2457/commits"},"statuses":{"href":"https://api.github.com/repos/NancyFx/Nancy/statuses/9fd35cb69ea0266b55f9c7b6f0500f488a6d8aa4"}}}}
{"actor":{"display_login":"jchannon"}}