{"action":"closed","number":5,"pull_request":{"url":"https://api.github.com/repos/fredericd/coce/pulls/5","id":31054004,"html_url":"https://github.com/fredericd/coce/pull/5","diff_url":"https://github.com/fredericd/coce/pull/5.diff","patch_url":"https://github.com/fredericd/coce/pull/5.patch","issue_url":"https://api.github.com/repos/fredericd/coce/issues/5","number":5,"state":"closed","locked":false,"title":"Errors should be returned as json bodies","user":{"login":"mrenvoize","id":557612,"avatar_url":"https://avatars.githubusercontent.com/u/557612?v=3","gravatar_id":"","url":"https://api.github.com/users/mrenvoize","html_url":"https://github.com/mrenvoize","followers_url":"https://api.github.com/users/mrenvoize/followers","following_url":"https://api.github.com/users/mrenvoize/following{/other_user}","gists_url":"https://api.github.com/users/mrenvoize/gists{/gist_id}","starred_url":"https://api.github.com/users/mrenvoize/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrenvoize/subscriptions","organizations_url":"https://api.github.com/users/mrenvoize/orgs","repos_url":"https://api.github.com/users/mrenvoize/repos","events_url":"https://api.github.com/users/mrenvoize/events{/privacy}","received_events_url":"https://api.github.com/users/mrenvoize/received_events","type":"User","site_admin":false},"body":"For consistency with a successful response, an error response should\r\nalso be in json to allow for the same code in the client app to handle\r\nboth cases\r\n\r\ncloses #4","created_at":"2015-03-12T16:40:20Z","updated_at":"2015-03-12T17:17:31Z","closed_at":"2015-03-12T17:17:31Z","merged_at":"2015-03-12T17:17:31Z","merge_commit_sha":"45c5b5e33ba771ba7535a99abf649675031a61d7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fredericd/coce/pulls/5/commits","review_comments_url":"https://api.github.com/repos/fredericd/coce/pulls/5/comments","review_comment_url":"https://api.github.com/repos/fredericd/coce/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fredericd/coce/issues/5/comments","statuses_url":"https://api.github.com/repos/fredericd/coce/statuses/2489d7b2eeda1d4d30c7fd3058b5443fa41d9656","head":{"label":"PTFS-Europe:errors","ref":"errors","sha":"2489d7b2eeda1d4d30c7fd3058b5443fa41d9656","user":{"login":"PTFS-Europe","id":557415,"avatar_url":"https://avatars.githubusercontent.com/u/557415?v=3","gravatar_id":"","url":"https://api.github.com/users/PTFS-Europe","html_url":"https://github.com/PTFS-Europe","followers_url":"https://api.github.com/users/PTFS-Europe/followers","following_url":"https://api.github.com/users/PTFS-Europe/following{/other_user}","gists_url":"https://api.github.com/users/PTFS-Europe/gists{/gist_id}","starred_url":"https://api.github.com/users/PTFS-Europe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PTFS-Europe/subscriptions","organizations_url":"https://api.github.com/users/PTFS-Europe/orgs","repos_url":"https://api.github.com/users/PTFS-Europe/repos","events_url":"https://api.github.com/users/PTFS-Europe/events{/privacy}","received_events_url":"https://api.github.com/users/PTFS-Europe/received_events","type":"Organization","site_admin":false},"repo":{"id":28857889,"name":"coce","full_name":"PTFS-Europe/coce","owner":{"login":"PTFS-Europe","id":557415,"avatar_url":"https://avatars.githubusercontent.com/u/557415?v=3","gravatar_id":"","url":"https://api.github.com/users/PTFS-Europe","html_url":"https://github.com/PTFS-Europe","followers_url":"https://api.github.com/users/PTFS-Europe/followers","following_url":"https://api.github.com/users/PTFS-Europe/following{/other_user}","gists_url":"https://api.github.com/users/PTFS-Europe/gists{/gist_id}","starred_url":"https://api.github.com/users/PTFS-Europe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PTFS-Europe/subscriptions","organizations_url":"https://api.github.com/users/PTFS-Europe/orgs","repos_url":"https://api.github.com/users/PTFS-Europe/repos","events_url":"https://api.github.com/users/PTFS-Europe/events{/privacy}","received_events_url":"https://api.github.com/users/PTFS-Europe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PTFS-Europe/coce","description":"Book image cover cache","fork":true,"url":"https://api.github.com/repos/PTFS-Europe/coce","forks_url":"https://api.github.com/repos/PTFS-Europe/coce/forks","keys_url":"https://api.github.com/repos/PTFS-Europe/coce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PTFS-Europe/coce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PTFS-Europe/coce/teams","hooks_url":"https://api.github.com/repos/PTFS-Europe/coce/hooks","issue_events_url":"https://api.github.com/repos/PTFS-Europe/coce/issues/events{/number}","events_url":"https://api.github.com/repos/PTFS-Europe/coce/events","assignees_url":"https://api.github.com/repos/PTFS-Europe/coce/assignees{/user}","branches_url":"https://api.github.com/repos/PTFS-Europe/coce/branches{/branch}","tags_url":"https://api.github.com/repos/PTFS-Europe/coce/tags","blobs_url":"https://api.github.com/repos/PTFS-Europe/coce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PTFS-Europe/coce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PTFS-Europe/coce/git/refs{/sha}","trees_url":"https://api.github.com/repos/PTFS-Europe/coce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PTFS-Europe/coce/statuses/{sha}","languages_url":"https://api.github.com/repos/PTFS-Europe/coce/languages","stargazers_url":"https://api.github.com/repos/PTFS-Europe/coce/stargazers","contributors_url":"https://api.github.com/repos/PTFS-Europe/coce/contributors","subscribers_url":"https://api.github.com/repos/PTFS-Europe/coce/subscribers","subscription_url":"https://api.github.com/repos/PTFS-Europe/coce/subscription","commits_url":"https://api.github.com/repos/PTFS-Europe/coce/commits{/sha}","git_commits_url":"https://api.github.com/repos/PTFS-Europe/coce/git/commits{/sha}","comments_url":"https://api.github.com/repos/PTFS-Europe/coce/comments{/number}","issue_comment_url":"https://api.github.com/repos/PTFS-Europe/coce/issues/comments{/number}","contents_url":"https://api.github.com/repos/PTFS-Europe/coce/contents/{+path}","compare_url":"https://api.github.com/repos/PTFS-Europe/coce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PTFS-Europe/coce/merges","archive_url":"https://api.github.com/repos/PTFS-Europe/coce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PTFS-Europe/coce/downloads","issues_url":"https://api.github.com/repos/PTFS-Europe/coce/issues{/number}","pulls_url":"https://api.github.com/repos/PTFS-Europe/coce/pulls{/number}","milestones_url":"https://api.github.com/repos/PTFS-Europe/coce/milestones{/number}","notifications_url":"https://api.github.com/repos/PTFS-Europe/coce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PTFS-Europe/coce/labels{/name}","releases_url":"https://api.github.com/repos/PTFS-Europe/coce/releases{/id}","created_at":"2015-01-06T10:14:44Z","updated_at":"2015-01-07T12:40:08Z","pushed_at":"2015-03-12T16:39:41Z","git_url":"git://github.com/PTFS-Europe/coce.git","ssh_url":"git@github.com:PTFS-Europe/coce.git","clone_url":"https://github.com/PTFS-Europe/coce.git","svn_url":"https://github.com/PTFS-Europe/coce","homepage":null,"size":155,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fredericd:master","ref":"master","sha":"a1e77d389a85ac3562d34d8f9db043c82b1a8b2f","user":{"login":"fredericd","id":1097900,"avatar_url":"https://avatars.githubusercontent.com/u/1097900?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericd","html_url":"https://github.com/fredericd","followers_url":"https://api.github.com/users/fredericd/followers","following_url":"https://api.github.com/users/fredericd/following{/other_user}","gists_url":"https://api.github.com/users/fredericd/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericd/subscriptions","organizations_url":"https://api.github.com/users/fredericd/orgs","repos_url":"https://api.github.com/users/fredericd/repos","events_url":"https://api.github.com/users/fredericd/events{/privacy}","received_events_url":"https://api.github.com/users/fredericd/received_events","type":"User","site_admin":false},"repo":{"id":8079184,"name":"coce","full_name":"fredericd/coce","owner":{"login":"fredericd","id":1097900,"avatar_url":"https://avatars.githubusercontent.com/u/1097900?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericd","html_url":"https://github.com/fredericd","followers_url":"https://api.github.com/users/fredericd/followers","following_url":"https://api.github.com/users/fredericd/following{/other_user}","gists_url":"https://api.github.com/users/fredericd/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericd/subscriptions","organizations_url":"https://api.github.com/users/fredericd/orgs","repos_url":"https://api.github.com/users/fredericd/repos","events_url":"https://api.github.com/users/fredericd/events{/privacy}","received_events_url":"https://api.github.com/users/fredericd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fredericd/coce","description":"Book image cover cache","fork":false,"url":"https://api.github.com/repos/fredericd/coce","forks_url":"https://api.github.com/repos/fredericd/coce/forks","keys_url":"https://api.github.com/repos/fredericd/coce/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fredericd/coce/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fredericd/coce/teams","hooks_url":"https://api.github.com/repos/fredericd/coce/hooks","issue_events_url":"https://api.github.com/repos/fredericd/coce/issues/events{/number}","events_url":"https://api.github.com/repos/fredericd/coce/events","assignees_url":"https://api.github.com/repos/fredericd/coce/assignees{/user}","branches_url":"https://api.github.com/repos/fredericd/coce/branches{/branch}","tags_url":"https://api.github.com/repos/fredericd/coce/tags","blobs_url":"https://api.github.com/repos/fredericd/coce/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fredericd/coce/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fredericd/coce/git/refs{/sha}","trees_url":"https://api.github.com/repos/fredericd/coce/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fredericd/coce/statuses/{sha}","languages_url":"https://api.github.com/repos/fredericd/coce/languages","stargazers_url":"https://api.github.com/repos/fredericd/coce/stargazers","contributors_url":"https://api.github.com/repos/fredericd/coce/contributors","subscribers_url":"https://api.github.com/repos/fredericd/coce/subscribers","subscription_url":"https://api.github.com/repos/fredericd/coce/subscription","commits_url":"https://api.github.com/repos/fredericd/coce/commits{/sha}","git_commits_url":"https://api.github.com/repos/fredericd/coce/git/commits{/sha}","comments_url":"https://api.github.com/repos/fredericd/coce/comments{/number}","issue_comment_url":"https://api.github.com/repos/fredericd/coce/issues/comments{/number}","contents_url":"https://api.github.com/repos/fredericd/coce/contents/{+path}","compare_url":"https://api.github.com/repos/fredericd/coce/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fredericd/coce/merges","archive_url":"https://api.github.com/repos/fredericd/coce/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fredericd/coce/downloads","issues_url":"https://api.github.com/repos/fredericd/coce/issues{/number}","pulls_url":"https://api.github.com/repos/fredericd/coce/pulls{/number}","milestones_url":"https://api.github.com/repos/fredericd/coce/milestones{/number}","notifications_url":"https://api.github.com/repos/fredericd/coce/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fredericd/coce/labels{/name}","releases_url":"https://api.github.com/repos/fredericd/coce/releases{/id}","created_at":"2013-02-07T18:50:31Z","updated_at":"2015-03-12T17:17:31Z","pushed_at":"2015-03-12T17:17:30Z","git_url":"git://github.com/fredericd/coce.git","ssh_url":"git@github.com:fredericd/coce.git","clone_url":"https://github.com/fredericd/coce.git","svn_url":"https://github.com/fredericd/coce","homepage":null,"size":235,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fredericd/coce/pulls/5"},"html":{"href":"https://github.com/fredericd/coce/pull/5"},"issue":{"href":"https://api.github.com/repos/fredericd/coce/issues/5"},"comments":{"href":"https://api.github.com/repos/fredericd/coce/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/fredericd/coce/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/fredericd/coce/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fredericd/coce/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/fredericd/coce/statuses/2489d7b2eeda1d4d30c7fd3058b5443fa41d9656"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"fredericd","id":1097900,"avatar_url":"https://avatars.githubusercontent.com/u/1097900?v=3","gravatar_id":"","url":"https://api.github.com/users/fredericd","html_url":"https://github.com/fredericd","followers_url":"https://api.github.com/users/fredericd/followers","following_url":"https://api.github.com/users/fredericd/following{/other_user}","gists_url":"https://api.github.com/users/fredericd/gists{/gist_id}","starred_url":"https://api.github.com/users/fredericd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fredericd/subscriptions","organizations_url":"https://api.github.com/users/fredericd/orgs","repos_url":"https://api.github.com/users/fredericd/repos","events_url":"https://api.github.com/users/fredericd/events{/privacy}","received_events_url":"https://api.github.com/users/fredericd/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":9,"deletions":2,"changed_files":1}}