{"action":"created","comment":{"url":"https://api.github.com/repos/zalando/planb-revocation/pulls/comments/58722666","id":58722666,"diff_hunk":"@@ -92,6 +93,19 @@ public Problem messageNotReadable(final HttpMessageNotReadableException e) {\n     }\n \n     /**\n+     * Handles access denied requests.\n+     *\n+     * @param e the exception triggering the error\n+     * @return a {@link Problem} reason for denying the access\n+     */\n+    @ExceptionHandler(AccessDeniedException.class)\n+    @ResponseStatus(HttpStatus.UNAUTHORIZED)","path":"src/main/java/org/zalando/planb/revocation/api/ExceptionsResource.java","position":18,"original_position":18,"commit_id":"1551b416dec7a24fe2afd1a301e7997c5f680719","original_commit_id":"1551b416dec7a24fe2afd1a301e7997c5f680719","user":{"login":"harti2006","id":6928004,"avatar_url":"https://avatars.githubusercontent.com/u/6928004?v=3","gravatar_id":"","url":"https://api.github.com/users/harti2006","html_url":"https://github.com/harti2006","followers_url":"https://api.github.com/users/harti2006/followers","following_url":"https://api.github.com/users/harti2006/following{/other_user}","gists_url":"https://api.github.com/users/harti2006/gists{/gist_id}","starred_url":"https://api.github.com/users/harti2006/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harti2006/subscriptions","organizations_url":"https://api.github.com/users/harti2006/orgs","repos_url":"https://api.github.com/users/harti2006/repos","events_url":"https://api.github.com/users/harti2006/events{/privacy}","received_events_url":"https://api.github.com/users/harti2006/received_events","type":"User","site_admin":false},"body":"instead of \"401 Unauthorized\" I would prefer \"403 Forbidden\" in this case. Because 401 tells clients to refresh their login.","created_at":"2016-04-06T15:09:51Z","updated_at":"2016-04-06T15:09:51Z","html_url":"https://github.com/zalando/planb-revocation/pull/92#discussion_r58722666","pull_request_url":"https://api.github.com/repos/zalando/planb-revocation/pulls/92","_links":{"self":{"href":"https://api.github.com/repos/zalando/planb-revocation/pulls/comments/58722666"},"html":{"href":"https://github.com/zalando/planb-revocation/pull/92#discussion_r58722666"},"pull_request":{"href":"https://api.github.com/repos/zalando/planb-revocation/pulls/92"}}},"pull_request":{"url":"https://api.github.com/repos/zalando/planb-revocation/pulls/92","id":65481814,"html_url":"https://github.com/zalando/planb-revocation/pull/92","diff_url":"https://github.com/zalando/planb-revocation/pull/92.diff","patch_url":"https://github.com/zalando/planb-revocation/pull/92.patch","issue_url":"https://api.github.com/repos/zalando/planb-revocation/issues/92","number":92,"state":"open","locked":false,"title":"#87 Implemented denial of GLOBAL revocations","user":{"login":"gargravarr","id":1788611,"avatar_url":"https://avatars.githubusercontent.com/u/1788611?v=3","gravatar_id":"","url":"https://api.github.com/users/gargravarr","html_url":"https://github.com/gargravarr","followers_url":"https://api.github.com/users/gargravarr/followers","following_url":"https://api.github.com/users/gargravarr/following{/other_user}","gists_url":"https://api.github.com/users/gargravarr/gists{/gist_id}","starred_url":"https://api.github.com/users/gargravarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gargravarr/subscriptions","organizations_url":"https://api.github.com/users/gargravarr/orgs","repos_url":"https://api.github.com/users/gargravarr/repos","events_url":"https://api.github.com/users/gargravarr/events{/privacy}","received_events_url":"https://api.github.com/users/gargravarr/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-06T15:02:04Z","updated_at":"2016-04-06T15:09:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b4415e0bb110833e9f7ffb4e1e5b5ba6724cef9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zalando/planb-revocation/pulls/92/commits","review_comments_url":"https://api.github.com/repos/zalando/planb-revocation/pulls/92/comments","review_comment_url":"https://api.github.com/repos/zalando/planb-revocation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando/planb-revocation/issues/92/comments","statuses_url":"https://api.github.com/repos/zalando/planb-revocation/statuses/1551b416dec7a24fe2afd1a301e7997c5f680719","head":{"label":"zalando:87-deny-global-revocations","ref":"87-deny-global-revocations","sha":"1551b416dec7a24fe2afd1a301e7997c5f680719","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":51506601,"name":"planb-revocation","full_name":"zalando/planb-revocation","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/planb-revocation","description":"Plan B Revocation Service for JWT tokens","fork":false,"url":"https://api.github.com/repos/zalando/planb-revocation","forks_url":"https://api.github.com/repos/zalando/planb-revocation/forks","keys_url":"https://api.github.com/repos/zalando/planb-revocation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/planb-revocation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/planb-revocation/teams","hooks_url":"https://api.github.com/repos/zalando/planb-revocation/hooks","issue_events_url":"https://api.github.com/repos/zalando/planb-revocation/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/planb-revocation/events","assignees_url":"https://api.github.com/repos/zalando/planb-revocation/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/planb-revocation/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/planb-revocation/tags","blobs_url":"https://api.github.com/repos/zalando/planb-revocation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/planb-revocation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/planb-revocation/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/planb-revocation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/planb-revocation/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/planb-revocation/languages","stargazers_url":"https://api.github.com/repos/zalando/planb-revocation/stargazers","contributors_url":"https://api.github.com/repos/zalando/planb-revocation/contributors","subscribers_url":"https://api.github.com/repos/zalando/planb-revocation/subscribers","subscription_url":"https://api.github.com/repos/zalando/planb-revocation/subscription","commits_url":"https://api.github.com/repos/zalando/planb-revocation/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/planb-revocation/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/planb-revocation/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/planb-revocation/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/planb-revocation/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/planb-revocation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/planb-revocation/merges","archive_url":"https://api.github.com/repos/zalando/planb-revocation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/planb-revocation/downloads","issues_url":"https://api.github.com/repos/zalando/planb-revocation/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/planb-revocation/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/planb-revocation/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/planb-revocation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/planb-revocation/labels{/name}","releases_url":"https://api.github.com/repos/zalando/planb-revocation/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/planb-revocation/deployments","created_at":"2016-02-11T10:03:34Z","updated_at":"2016-03-07T17:27:44Z","pushed_at":"2016-04-06T15:07:18Z","git_url":"git://github.com/zalando/planb-revocation.git","ssh_url":"git@github.com:zalando/planb-revocation.git","clone_url":"https://github.com/zalando/planb-revocation.git","svn_url":"https://github.com/zalando/planb-revocation","homepage":"http://planb.readthedocs.org/","size":409,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"base":{"label":"zalando:master","ref":"master","sha":"acb9b64a14ed12db735bc56d74b8596148fc5f1e","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":51506601,"name":"planb-revocation","full_name":"zalando/planb-revocation","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/planb-revocation","description":"Plan B Revocation Service for JWT tokens","fork":false,"url":"https://api.github.com/repos/zalando/planb-revocation","forks_url":"https://api.github.com/repos/zalando/planb-revocation/forks","keys_url":"https://api.github.com/repos/zalando/planb-revocation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/planb-revocation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/planb-revocation/teams","hooks_url":"https://api.github.com/repos/zalando/planb-revocation/hooks","issue_events_url":"https://api.github.com/repos/zalando/planb-revocation/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/planb-revocation/events","assignees_url":"https://api.github.com/repos/zalando/planb-revocation/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/planb-revocation/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/planb-revocation/tags","blobs_url":"https://api.github.com/repos/zalando/planb-revocation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/planb-revocation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/planb-revocation/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/planb-revocation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/planb-revocation/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/planb-revocation/languages","stargazers_url":"https://api.github.com/repos/zalando/planb-revocation/stargazers","contributors_url":"https://api.github.com/repos/zalando/planb-revocation/contributors","subscribers_url":"https://api.github.com/repos/zalando/planb-revocation/subscribers","subscription_url":"https://api.github.com/repos/zalando/planb-revocation/subscription","commits_url":"https://api.github.com/repos/zalando/planb-revocation/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/planb-revocation/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/planb-revocation/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/planb-revocation/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/planb-revocation/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/planb-revocation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/planb-revocation/merges","archive_url":"https://api.github.com/repos/zalando/planb-revocation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/planb-revocation/downloads","issues_url":"https://api.github.com/repos/zalando/planb-revocation/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/planb-revocation/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/planb-revocation/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/planb-revocation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/planb-revocation/labels{/name}","releases_url":"https://api.github.com/repos/zalando/planb-revocation/releases{/id}","deployments_url":"https://api.github.com/repos/zalando/planb-revocation/deployments","created_at":"2016-02-11T10:03:34Z","updated_at":"2016-03-07T17:27:44Z","pushed_at":"2016-04-06T15:07:18Z","git_url":"git://github.com/zalando/planb-revocation.git","ssh_url":"git@github.com:zalando/planb-revocation.git","clone_url":"https://github.com/zalando/planb-revocation.git","svn_url":"https://github.com/zalando/planb-revocation","homepage":"http://planb.readthedocs.org/","size":409,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando/planb-revocation/pulls/92"},"html":{"href":"https://github.com/zalando/planb-revocation/pull/92"},"issue":{"href":"https://api.github.com/repos/zalando/planb-revocation/issues/92"},"comments":{"href":"https://api.github.com/repos/zalando/planb-revocation/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando/planb-revocation/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando/planb-revocation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando/planb-revocation/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/zalando/planb-revocation/statuses/1551b416dec7a24fe2afd1a301e7997c5f680719"}}}}