{"action":"opened","number":53,"pull_request":{"url":"https://api.github.com/repos/r0man/cljs-http/pulls/53","id":35709954,"html_url":"https://github.com/r0man/cljs-http/pull/53","diff_url":"https://github.com/r0man/cljs-http/pull/53.diff","patch_url":"https://github.com/r0man/cljs-http/pull/53.patch","issue_url":"https://api.github.com/repos/r0man/cljs-http/issues/53","number":53,"state":"open","locked":false,"title":"Add :error-code and :error-text to response","user":{"login":"cursork","id":797953,"avatar_url":"https://avatars.githubusercontent.com/u/797953?v=3","gravatar_id":"","url":"https://api.github.com/users/cursork","html_url":"https://github.com/cursork","followers_url":"https://api.github.com/users/cursork/followers","following_url":"https://api.github.com/users/cursork/following{/other_user}","gists_url":"https://api.github.com/users/cursork/gists{/gist_id}","starred_url":"https://api.github.com/users/cursork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cursork/subscriptions","organizations_url":"https://api.github.com/users/cursork/orgs","repos_url":"https://api.github.com/users/cursork/repos","events_url":"https://api.github.com/users/cursork/events{/privacy}","received_events_url":"https://api.github.com/users/cursork/received_events","type":"User","site_admin":false},"body":"I've found it useful to be able to check the underlying `goog.net.ErrorCode`. This PR maps those codes to Clojure keywords - e.g. `goog.net.ErrorCode.HTTP_ERROR` -> `:http-error`","created_at":"2015-05-19T09:15:55Z","updated_at":"2015-05-19T09:15:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/r0man/cljs-http/pulls/53/commits","review_comments_url":"https://api.github.com/repos/r0man/cljs-http/pulls/53/comments","review_comment_url":"https://api.github.com/repos/r0man/cljs-http/pulls/comments{/number}","comments_url":"https://api.github.com/repos/r0man/cljs-http/issues/53/comments","statuses_url":"https://api.github.com/repos/r0man/cljs-http/statuses/f0a5f9dabc7604fa51a4eca2b7b04c89cf9a135d","head":{"label":"cursork:return-error-code","ref":"return-error-code","sha":"f0a5f9dabc7604fa51a4eca2b7b04c89cf9a135d","user":{"login":"cursork","id":797953,"avatar_url":"https://avatars.githubusercontent.com/u/797953?v=3","gravatar_id":"","url":"https://api.github.com/users/cursork","html_url":"https://github.com/cursork","followers_url":"https://api.github.com/users/cursork/followers","following_url":"https://api.github.com/users/cursork/following{/other_user}","gists_url":"https://api.github.com/users/cursork/gists{/gist_id}","starred_url":"https://api.github.com/users/cursork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cursork/subscriptions","organizations_url":"https://api.github.com/users/cursork/orgs","repos_url":"https://api.github.com/users/cursork/repos","events_url":"https://api.github.com/users/cursork/events{/privacy}","received_events_url":"https://api.github.com/users/cursork/received_events","type":"User","site_admin":false},"repo":{"id":18302697,"name":"cljs-http","full_name":"cursork/cljs-http","owner":{"login":"cursork","id":797953,"avatar_url":"https://avatars.githubusercontent.com/u/797953?v=3","gravatar_id":"","url":"https://api.github.com/users/cursork","html_url":"https://github.com/cursork","followers_url":"https://api.github.com/users/cursork/followers","following_url":"https://api.github.com/users/cursork/following{/other_user}","gists_url":"https://api.github.com/users/cursork/gists{/gist_id}","starred_url":"https://api.github.com/users/cursork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cursork/subscriptions","organizations_url":"https://api.github.com/users/cursork/orgs","repos_url":"https://api.github.com/users/cursork/repos","events_url":"https://api.github.com/users/cursork/events{/privacy}","received_events_url":"https://api.github.com/users/cursork/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cursork/cljs-http","description":"A ClojureScript HTTP library.","fork":true,"url":"https://api.github.com/repos/cursork/cljs-http","forks_url":"https://api.github.com/repos/cursork/cljs-http/forks","keys_url":"https://api.github.com/repos/cursork/cljs-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cursork/cljs-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cursork/cljs-http/teams","hooks_url":"https://api.github.com/repos/cursork/cljs-http/hooks","issue_events_url":"https://api.github.com/repos/cursork/cljs-http/issues/events{/number}","events_url":"https://api.github.com/repos/cursork/cljs-http/events","assignees_url":"https://api.github.com/repos/cursork/cljs-http/assignees{/user}","branches_url":"https://api.github.com/repos/cursork/cljs-http/branches{/branch}","tags_url":"https://api.github.com/repos/cursork/cljs-http/tags","blobs_url":"https://api.github.com/repos/cursork/cljs-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cursork/cljs-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cursork/cljs-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/cursork/cljs-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cursork/cljs-http/statuses/{sha}","languages_url":"https://api.github.com/repos/cursork/cljs-http/languages","stargazers_url":"https://api.github.com/repos/cursork/cljs-http/stargazers","contributors_url":"https://api.github.com/repos/cursork/cljs-http/contributors","subscribers_url":"https://api.github.com/repos/cursork/cljs-http/subscribers","subscription_url":"https://api.github.com/repos/cursork/cljs-http/subscription","commits_url":"https://api.github.com/repos/cursork/cljs-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/cursork/cljs-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/cursork/cljs-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/cursork/cljs-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/cursork/cljs-http/contents/{+path}","compare_url":"https://api.github.com/repos/cursork/cljs-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cursork/cljs-http/merges","archive_url":"https://api.github.com/repos/cursork/cljs-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cursork/cljs-http/downloads","issues_url":"https://api.github.com/repos/cursork/cljs-http/issues{/number}","pulls_url":"https://api.github.com/repos/cursork/cljs-http/pulls{/number}","milestones_url":"https://api.github.com/repos/cursork/cljs-http/milestones{/number}","notifications_url":"https://api.github.com/repos/cursork/cljs-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cursork/cljs-http/labels{/name}","releases_url":"https://api.github.com/repos/cursork/cljs-http/releases{/id}","created_at":"2014-03-31T18:02:35Z","updated_at":"2015-05-18T15:38:37Z","pushed_at":"2015-05-18T16:20:05Z","git_url":"git://github.com/cursork/cljs-http.git","ssh_url":"git@github.com:cursork/cljs-http.git","clone_url":"https://github.com/cursork/cljs-http.git","svn_url":"https://github.com/cursork/cljs-http","homepage":"","size":262,"stargazers_count":0,"watchers_count":0,"language":"Clojure","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":"r0man:master","ref":"master","sha":"1d3e5712a934a72deecf0f905b46dd3a4f07920e","user":{"login":"r0man","id":21566,"avatar_url":"https://avatars.githubusercontent.com/u/21566?v=3","gravatar_id":"","url":"https://api.github.com/users/r0man","html_url":"https://github.com/r0man","followers_url":"https://api.github.com/users/r0man/followers","following_url":"https://api.github.com/users/r0man/following{/other_user}","gists_url":"https://api.github.com/users/r0man/gists{/gist_id}","starred_url":"https://api.github.com/users/r0man/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r0man/subscriptions","organizations_url":"https://api.github.com/users/r0man/orgs","repos_url":"https://api.github.com/users/r0man/repos","events_url":"https://api.github.com/users/r0man/events{/privacy}","received_events_url":"https://api.github.com/users/r0man/received_events","type":"User","site_admin":false},"repo":{"id":3356034,"name":"cljs-http","full_name":"r0man/cljs-http","owner":{"login":"r0man","id":21566,"avatar_url":"https://avatars.githubusercontent.com/u/21566?v=3","gravatar_id":"","url":"https://api.github.com/users/r0man","html_url":"https://github.com/r0man","followers_url":"https://api.github.com/users/r0man/followers","following_url":"https://api.github.com/users/r0man/following{/other_user}","gists_url":"https://api.github.com/users/r0man/gists{/gist_id}","starred_url":"https://api.github.com/users/r0man/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r0man/subscriptions","organizations_url":"https://api.github.com/users/r0man/orgs","repos_url":"https://api.github.com/users/r0man/repos","events_url":"https://api.github.com/users/r0man/events{/privacy}","received_events_url":"https://api.github.com/users/r0man/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/r0man/cljs-http","description":"A ClojureScript HTTP library.","fork":false,"url":"https://api.github.com/repos/r0man/cljs-http","forks_url":"https://api.github.com/repos/r0man/cljs-http/forks","keys_url":"https://api.github.com/repos/r0man/cljs-http/keys{/key_id}","collaborators_url":"https://api.github.com/repos/r0man/cljs-http/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/r0man/cljs-http/teams","hooks_url":"https://api.github.com/repos/r0man/cljs-http/hooks","issue_events_url":"https://api.github.com/repos/r0man/cljs-http/issues/events{/number}","events_url":"https://api.github.com/repos/r0man/cljs-http/events","assignees_url":"https://api.github.com/repos/r0man/cljs-http/assignees{/user}","branches_url":"https://api.github.com/repos/r0man/cljs-http/branches{/branch}","tags_url":"https://api.github.com/repos/r0man/cljs-http/tags","blobs_url":"https://api.github.com/repos/r0man/cljs-http/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/r0man/cljs-http/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/r0man/cljs-http/git/refs{/sha}","trees_url":"https://api.github.com/repos/r0man/cljs-http/git/trees{/sha}","statuses_url":"https://api.github.com/repos/r0man/cljs-http/statuses/{sha}","languages_url":"https://api.github.com/repos/r0man/cljs-http/languages","stargazers_url":"https://api.github.com/repos/r0man/cljs-http/stargazers","contributors_url":"https://api.github.com/repos/r0man/cljs-http/contributors","subscribers_url":"https://api.github.com/repos/r0man/cljs-http/subscribers","subscription_url":"https://api.github.com/repos/r0man/cljs-http/subscription","commits_url":"https://api.github.com/repos/r0man/cljs-http/commits{/sha}","git_commits_url":"https://api.github.com/repos/r0man/cljs-http/git/commits{/sha}","comments_url":"https://api.github.com/repos/r0man/cljs-http/comments{/number}","issue_comment_url":"https://api.github.com/repos/r0man/cljs-http/issues/comments{/number}","contents_url":"https://api.github.com/repos/r0man/cljs-http/contents/{+path}","compare_url":"https://api.github.com/repos/r0man/cljs-http/compare/{base}...{head}","merges_url":"https://api.github.com/repos/r0man/cljs-http/merges","archive_url":"https://api.github.com/repos/r0man/cljs-http/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/r0man/cljs-http/downloads","issues_url":"https://api.github.com/repos/r0man/cljs-http/issues{/number}","pulls_url":"https://api.github.com/repos/r0man/cljs-http/pulls{/number}","milestones_url":"https://api.github.com/repos/r0man/cljs-http/milestones{/number}","notifications_url":"https://api.github.com/repos/r0man/cljs-http/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/r0man/cljs-http/labels{/name}","releases_url":"https://api.github.com/repos/r0man/cljs-http/releases{/id}","created_at":"2012-02-04T22:54:43Z","updated_at":"2015-05-16T19:01:52Z","pushed_at":"2015-03-30T16:10:28Z","git_url":"git://github.com/r0man/cljs-http.git","ssh_url":"git@github.com:r0man/cljs-http.git","clone_url":"https://github.com/r0man/cljs-http.git","svn_url":"https://github.com/r0man/cljs-http","homepage":"","size":1005,"stargazers_count":153,"watchers_count":153,"language":"Clojure","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":11,"forks":28,"open_issues":11,"watchers":153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/r0man/cljs-http/pulls/53"},"html":{"href":"https://github.com/r0man/cljs-http/pull/53"},"issue":{"href":"https://api.github.com/repos/r0man/cljs-http/issues/53"},"comments":{"href":"https://api.github.com/repos/r0man/cljs-http/issues/53/comments"},"review_comments":{"href":"https://api.github.com/repos/r0man/cljs-http/pulls/53/comments"},"review_comment":{"href":"https://api.github.com/repos/r0man/cljs-http/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/r0man/cljs-http/pulls/53/commits"},"statuses":{"href":"https://api.github.com/repos/r0man/cljs-http/statuses/f0a5f9dabc7604fa51a4eca2b7b04c89cf9a135d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":17,"deletions":3,"changed_files":1}}