{"action":"opened","number":35,"pull_request":{"url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls/35","id":61700652,"html_url":"https://github.com/UKHomeOffice/passports-form-controller/pull/35","diff_url":"https://github.com/UKHomeOffice/passports-form-controller/pull/35.diff","patch_url":"https://github.com/UKHomeOffice/passports-form-controller/pull/35.patch","issue_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/35","number":35,"state":"open","locked":false,"title":"Pass the reponse object into the ErrorClass constructor","user":{"login":"gavboulton","id":3900826,"avatar_url":"https://avatars.githubusercontent.com/u/3900826?v=3","gravatar_id":"","url":"https://api.github.com/users/gavboulton","html_url":"https://github.com/gavboulton","followers_url":"https://api.github.com/users/gavboulton/followers","following_url":"https://api.github.com/users/gavboulton/following{/other_user}","gists_url":"https://api.github.com/users/gavboulton/gists{/gist_id}","starred_url":"https://api.github.com/users/gavboulton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gavboulton/subscriptions","organizations_url":"https://api.github.com/users/gavboulton/orgs","repos_url":"https://api.github.com/users/gavboulton/repos","events_url":"https://api.github.com/users/gavboulton/events{/privacy}","received_events_url":"https://api.github.com/users/gavboulton/received_events","type":"User","site_admin":false},"body":"Pass the reponse object to the getMessage method so that it can be used for error message construction. This will allow errors that use properties of `res.locals` to be built correctly.","created_at":"2016-03-04T11:35:48Z","updated_at":"2016-03-04T11:35:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls/35/commits","review_comments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls/35/comments","review_comment_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/35/comments","statuses_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/statuses/4d31530584d3f2e9f8971a30cf995db4fe57737f","head":{"label":"UKHomeOffice:feature/res-in-error","ref":"feature/res-in-error","sha":"4d31530584d3f2e9f8971a30cf995db4fe57737f","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":30529402,"name":"passports-form-controller","full_name":"UKHomeOffice/passports-form-controller","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/passports-form-controller","description":"","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller","forks_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/deployments","created_at":"2015-02-09T09:58:37Z","updated_at":"2015-05-01T10:45:59Z","pushed_at":"2016-03-04T11:35:13Z","git_url":"git://github.com/UKHomeOffice/passports-form-controller.git","ssh_url":"git@github.com:UKHomeOffice/passports-form-controller.git","clone_url":"https://github.com/UKHomeOffice/passports-form-controller.git","svn_url":"https://github.com/UKHomeOffice/passports-form-controller","homepage":null,"size":74,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"UKHomeOffice:master","ref":"master","sha":"a2efaa911cebcf954cdd6f6197ebb09b8aa80b69","user":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"repo":{"id":30529402,"name":"passports-form-controller","full_name":"UKHomeOffice/passports-form-controller","owner":{"login":"UKHomeOffice","id":3778081,"avatar_url":"https://avatars.githubusercontent.com/u/3778081?v=3","gravatar_id":"","url":"https://api.github.com/users/UKHomeOffice","html_url":"https://github.com/UKHomeOffice","followers_url":"https://api.github.com/users/UKHomeOffice/followers","following_url":"https://api.github.com/users/UKHomeOffice/following{/other_user}","gists_url":"https://api.github.com/users/UKHomeOffice/gists{/gist_id}","starred_url":"https://api.github.com/users/UKHomeOffice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UKHomeOffice/subscriptions","organizations_url":"https://api.github.com/users/UKHomeOffice/orgs","repos_url":"https://api.github.com/users/UKHomeOffice/repos","events_url":"https://api.github.com/users/UKHomeOffice/events{/privacy}","received_events_url":"https://api.github.com/users/UKHomeOffice/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UKHomeOffice/passports-form-controller","description":"","fork":false,"url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller","forks_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/forks","keys_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/teams","hooks_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/hooks","issue_events_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/events{/number}","events_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/events","assignees_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/assignees{/user}","branches_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/branches{/branch}","tags_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/tags","blobs_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/git/refs{/sha}","trees_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/statuses/{sha}","languages_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/languages","stargazers_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/stargazers","contributors_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/contributors","subscribers_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/subscribers","subscription_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/subscription","commits_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/commits{/sha}","git_commits_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/git/commits{/sha}","comments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/comments{/number}","issue_comment_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/comments{/number}","contents_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/contents/{+path}","compare_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/merges","archive_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/downloads","issues_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues{/number}","pulls_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls{/number}","milestones_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/milestones{/number}","notifications_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/labels{/name}","releases_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/releases{/id}","deployments_url":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/deployments","created_at":"2015-02-09T09:58:37Z","updated_at":"2015-05-01T10:45:59Z","pushed_at":"2016-03-04T11:35:13Z","git_url":"git://github.com/UKHomeOffice/passports-form-controller.git","ssh_url":"git@github.com:UKHomeOffice/passports-form-controller.git","clone_url":"https://github.com/UKHomeOffice/passports-form-controller.git","svn_url":"https://github.com/UKHomeOffice/passports-form-controller","homepage":null,"size":74,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls/35"},"html":{"href":"https://github.com/UKHomeOffice/passports-form-controller/pull/35"},"issue":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/35"},"comments":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/UKHomeOffice/passports-form-controller/statuses/4d31530584d3f2e9f8971a30cf995db4fe57737f"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":33,"deletions":9,"changed_files":4}}