{"action":"created","comment":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/comments/47443134","id":47443134,"diff_hunk":"@@ -245,7 +247,7 @@ class RestfulRenderCacheTestCase extends \\RestfulCurlBaseTestCase {\n     // Try to access the cached resource.\n     $response = $this->httpRequest($path);\n     // The user should get a 403.\n-    $this->assertEqual($response['code'], 403, 'Access denied for anonymous user.');\n+    $this->assertEqual($response['code'], 401, 'Access denied for anonymous user.');","path":"tests/RestfulRenderCacheTestCase.test","position":35,"original_position":35,"commit_id":"383ef5e586e73aa7e2110294b34292695cbc05e0","original_commit_id":"383ef5e586e73aa7e2110294b34292695cbc05e0","user":{"login":"e0ipso","id":1140906,"avatar_url":"https://avatars.githubusercontent.com/u/1140906?v=3","gravatar_id":"","url":"https://api.github.com/users/e0ipso","html_url":"https://github.com/e0ipso","followers_url":"https://api.github.com/users/e0ipso/followers","following_url":"https://api.github.com/users/e0ipso/following{/other_user}","gists_url":"https://api.github.com/users/e0ipso/gists{/gist_id}","starred_url":"https://api.github.com/users/e0ipso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e0ipso/subscriptions","organizations_url":"https://api.github.com/users/e0ipso/orgs","repos_url":"https://api.github.com/users/e0ipso/repos","events_url":"https://api.github.com/users/e0ipso/events{/privacy}","received_events_url":"https://api.github.com/users/e0ipso/received_events","type":"User","site_admin":false},"body":"Yikes. I'll fix the comment.\r\n\r\n401 means authorization error, meaning that the requester meant to be identified with a Drupal user but the credentials were bad.\r\n\r\n403 is more for, _I know who you are, and you cannot do that_.","created_at":"2015-12-13T11:17:04Z","updated_at":"2015-12-13T11:17:04Z","html_url":"https://github.com/RESTful-Drupal/restful/pull/794#discussion_r47443134","pull_request_url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/794","_links":{"self":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/comments/47443134"},"html":{"href":"https://github.com/RESTful-Drupal/restful/pull/794#discussion_r47443134"},"pull_request":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/794"}}},"pull_request":{"url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/794","id":53497657,"html_url":"https://github.com/RESTful-Drupal/restful/pull/794","diff_url":"https://github.com/RESTful-Drupal/restful/pull/794.diff","patch_url":"https://github.com/RESTful-Drupal/restful/pull/794.patch","issue_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/794","number":794,"state":"open","locked":false,"title":"[FEATURE] More semantic error codes on access check","user":{"login":"e0ipso","id":1140906,"avatar_url":"https://avatars.githubusercontent.com/u/1140906?v=3","gravatar_id":"","url":"https://api.github.com/users/e0ipso","html_url":"https://github.com/e0ipso","followers_url":"https://api.github.com/users/e0ipso/followers","following_url":"https://api.github.com/users/e0ipso/following{/other_user}","gists_url":"https://api.github.com/users/e0ipso/gists{/gist_id}","starred_url":"https://api.github.com/users/e0ipso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e0ipso/subscriptions","organizations_url":"https://api.github.com/users/e0ipso/orgs","repos_url":"https://api.github.com/users/e0ipso/repos","events_url":"https://api.github.com/users/e0ipso/events{/privacy}","received_events_url":"https://api.github.com/users/e0ipso/received_events","type":"User","site_admin":false},"body":"If a request is denied access via a RESTful exception do not discard the error code. Instead return a well formatted error response.","created_at":"2015-12-13T11:12:34Z","updated_at":"2015-12-13T11:17:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"855cb6f529373596c22756c53595d950c3d29c99","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/794/commits","review_comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/794/comments","review_comment_url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/794/comments","statuses_url":"https://api.github.com/repos/RESTful-Drupal/restful/statuses/383ef5e586e73aa7e2110294b34292695cbc05e0","head":{"label":"e0ipso:ademarco-issue-751","ref":"ademarco-issue-751","sha":"383ef5e586e73aa7e2110294b34292695cbc05e0","user":{"login":"e0ipso","id":1140906,"avatar_url":"https://avatars.githubusercontent.com/u/1140906?v=3","gravatar_id":"","url":"https://api.github.com/users/e0ipso","html_url":"https://github.com/e0ipso","followers_url":"https://api.github.com/users/e0ipso/followers","following_url":"https://api.github.com/users/e0ipso/following{/other_user}","gists_url":"https://api.github.com/users/e0ipso/gists{/gist_id}","starred_url":"https://api.github.com/users/e0ipso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e0ipso/subscriptions","organizations_url":"https://api.github.com/users/e0ipso/orgs","repos_url":"https://api.github.com/users/e0ipso/repos","events_url":"https://api.github.com/users/e0ipso/events{/privacy}","received_events_url":"https://api.github.com/users/e0ipso/received_events","type":"User","site_admin":false},"repo":{"id":19935082,"name":"restful","full_name":"e0ipso/restful","owner":{"login":"e0ipso","id":1140906,"avatar_url":"https://avatars.githubusercontent.com/u/1140906?v=3","gravatar_id":"","url":"https://api.github.com/users/e0ipso","html_url":"https://github.com/e0ipso","followers_url":"https://api.github.com/users/e0ipso/followers","following_url":"https://api.github.com/users/e0ipso/following{/other_user}","gists_url":"https://api.github.com/users/e0ipso/gists{/gist_id}","starred_url":"https://api.github.com/users/e0ipso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e0ipso/subscriptions","organizations_url":"https://api.github.com/users/e0ipso/orgs","repos_url":"https://api.github.com/users/e0ipso/repos","events_url":"https://api.github.com/users/e0ipso/events{/privacy}","received_events_url":"https://api.github.com/users/e0ipso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/e0ipso/restful","description":"RESTful best practices for Drupal","fork":true,"url":"https://api.github.com/repos/e0ipso/restful","forks_url":"https://api.github.com/repos/e0ipso/restful/forks","keys_url":"https://api.github.com/repos/e0ipso/restful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/e0ipso/restful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/e0ipso/restful/teams","hooks_url":"https://api.github.com/repos/e0ipso/restful/hooks","issue_events_url":"https://api.github.com/repos/e0ipso/restful/issues/events{/number}","events_url":"https://api.github.com/repos/e0ipso/restful/events","assignees_url":"https://api.github.com/repos/e0ipso/restful/assignees{/user}","branches_url":"https://api.github.com/repos/e0ipso/restful/branches{/branch}","tags_url":"https://api.github.com/repos/e0ipso/restful/tags","blobs_url":"https://api.github.com/repos/e0ipso/restful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/e0ipso/restful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/e0ipso/restful/git/refs{/sha}","trees_url":"https://api.github.com/repos/e0ipso/restful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/e0ipso/restful/statuses/{sha}","languages_url":"https://api.github.com/repos/e0ipso/restful/languages","stargazers_url":"https://api.github.com/repos/e0ipso/restful/stargazers","contributors_url":"https://api.github.com/repos/e0ipso/restful/contributors","subscribers_url":"https://api.github.com/repos/e0ipso/restful/subscribers","subscription_url":"https://api.github.com/repos/e0ipso/restful/subscription","commits_url":"https://api.github.com/repos/e0ipso/restful/commits{/sha}","git_commits_url":"https://api.github.com/repos/e0ipso/restful/git/commits{/sha}","comments_url":"https://api.github.com/repos/e0ipso/restful/comments{/number}","issue_comment_url":"https://api.github.com/repos/e0ipso/restful/issues/comments{/number}","contents_url":"https://api.github.com/repos/e0ipso/restful/contents/{+path}","compare_url":"https://api.github.com/repos/e0ipso/restful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/e0ipso/restful/merges","archive_url":"https://api.github.com/repos/e0ipso/restful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/e0ipso/restful/downloads","issues_url":"https://api.github.com/repos/e0ipso/restful/issues{/number}","pulls_url":"https://api.github.com/repos/e0ipso/restful/pulls{/number}","milestones_url":"https://api.github.com/repos/e0ipso/restful/milestones{/number}","notifications_url":"https://api.github.com/repos/e0ipso/restful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/e0ipso/restful/labels{/name}","releases_url":"https://api.github.com/repos/e0ipso/restful/releases{/id}","created_at":"2014-05-19T08:55:09Z","updated_at":"2015-04-14T13:17:17Z","pushed_at":"2015-12-13T11:10:53Z","git_url":"git://github.com/e0ipso/restful.git","ssh_url":"git@github.com:e0ipso/restful.git","clone_url":"https://github.com/e0ipso/restful.git","svn_url":"https://github.com/e0ipso/restful","homepage":"","size":3009,"stargazers_count":1,"watchers_count":1,"language":"PHP","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":1,"default_branch":"7.x-1.x"}},"base":{"label":"RESTful-Drupal:7.x-2.x","ref":"7.x-2.x","sha":"4a2f639b101f67f0ed03a9a922b06b553c55c6c6","user":{"login":"RESTful-Drupal","id":10175793,"avatar_url":"https://avatars.githubusercontent.com/u/10175793?v=3","gravatar_id":"","url":"https://api.github.com/users/RESTful-Drupal","html_url":"https://github.com/RESTful-Drupal","followers_url":"https://api.github.com/users/RESTful-Drupal/followers","following_url":"https://api.github.com/users/RESTful-Drupal/following{/other_user}","gists_url":"https://api.github.com/users/RESTful-Drupal/gists{/gist_id}","starred_url":"https://api.github.com/users/RESTful-Drupal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RESTful-Drupal/subscriptions","organizations_url":"https://api.github.com/users/RESTful-Drupal/orgs","repos_url":"https://api.github.com/users/RESTful-Drupal/repos","events_url":"https://api.github.com/users/RESTful-Drupal/events{/privacy}","received_events_url":"https://api.github.com/users/RESTful-Drupal/received_events","type":"Organization","site_admin":false},"repo":{"id":17918315,"name":"restful","full_name":"RESTful-Drupal/restful","owner":{"login":"RESTful-Drupal","id":10175793,"avatar_url":"https://avatars.githubusercontent.com/u/10175793?v=3","gravatar_id":"","url":"https://api.github.com/users/RESTful-Drupal","html_url":"https://github.com/RESTful-Drupal","followers_url":"https://api.github.com/users/RESTful-Drupal/followers","following_url":"https://api.github.com/users/RESTful-Drupal/following{/other_user}","gists_url":"https://api.github.com/users/RESTful-Drupal/gists{/gist_id}","starred_url":"https://api.github.com/users/RESTful-Drupal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RESTful-Drupal/subscriptions","organizations_url":"https://api.github.com/users/RESTful-Drupal/orgs","repos_url":"https://api.github.com/users/RESTful-Drupal/repos","events_url":"https://api.github.com/users/RESTful-Drupal/events{/privacy}","received_events_url":"https://api.github.com/users/RESTful-Drupal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RESTful-Drupal/restful","description":"RESTful best practices for Drupal","fork":false,"url":"https://api.github.com/repos/RESTful-Drupal/restful","forks_url":"https://api.github.com/repos/RESTful-Drupal/restful/forks","keys_url":"https://api.github.com/repos/RESTful-Drupal/restful/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RESTful-Drupal/restful/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RESTful-Drupal/restful/teams","hooks_url":"https://api.github.com/repos/RESTful-Drupal/restful/hooks","issue_events_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/events{/number}","events_url":"https://api.github.com/repos/RESTful-Drupal/restful/events","assignees_url":"https://api.github.com/repos/RESTful-Drupal/restful/assignees{/user}","branches_url":"https://api.github.com/repos/RESTful-Drupal/restful/branches{/branch}","tags_url":"https://api.github.com/repos/RESTful-Drupal/restful/tags","blobs_url":"https://api.github.com/repos/RESTful-Drupal/restful/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RESTful-Drupal/restful/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RESTful-Drupal/restful/git/refs{/sha}","trees_url":"https://api.github.com/repos/RESTful-Drupal/restful/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RESTful-Drupal/restful/statuses/{sha}","languages_url":"https://api.github.com/repos/RESTful-Drupal/restful/languages","stargazers_url":"https://api.github.com/repos/RESTful-Drupal/restful/stargazers","contributors_url":"https://api.github.com/repos/RESTful-Drupal/restful/contributors","subscribers_url":"https://api.github.com/repos/RESTful-Drupal/restful/subscribers","subscription_url":"https://api.github.com/repos/RESTful-Drupal/restful/subscription","commits_url":"https://api.github.com/repos/RESTful-Drupal/restful/commits{/sha}","git_commits_url":"https://api.github.com/repos/RESTful-Drupal/restful/git/commits{/sha}","comments_url":"https://api.github.com/repos/RESTful-Drupal/restful/comments{/number}","issue_comment_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues/comments{/number}","contents_url":"https://api.github.com/repos/RESTful-Drupal/restful/contents/{+path}","compare_url":"https://api.github.com/repos/RESTful-Drupal/restful/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RESTful-Drupal/restful/merges","archive_url":"https://api.github.com/repos/RESTful-Drupal/restful/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RESTful-Drupal/restful/downloads","issues_url":"https://api.github.com/repos/RESTful-Drupal/restful/issues{/number}","pulls_url":"https://api.github.com/repos/RESTful-Drupal/restful/pulls{/number}","milestones_url":"https://api.github.com/repos/RESTful-Drupal/restful/milestones{/number}","notifications_url":"https://api.github.com/repos/RESTful-Drupal/restful/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RESTful-Drupal/restful/labels{/name}","releases_url":"https://api.github.com/repos/RESTful-Drupal/restful/releases{/id}","created_at":"2014-03-19T19:58:55Z","updated_at":"2015-12-11T20:56:28Z","pushed_at":"2015-12-13T11:12:34Z","git_url":"git://github.com/RESTful-Drupal/restful.git","ssh_url":"git@github.com:RESTful-Drupal/restful.git","clone_url":"https://github.com/RESTful-Drupal/restful.git","svn_url":"https://github.com/RESTful-Drupal/restful","homepage":"https://drupal.org/project/restful","size":3949,"stargazers_count":292,"watchers_count":292,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":94,"mirror_url":null,"open_issues_count":133,"forks":94,"open_issues":133,"watchers":292,"default_branch":"7.x-2.x"}},"_links":{"self":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/794"},"html":{"href":"https://github.com/RESTful-Drupal/restful/pull/794"},"issue":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/issues/794"},"comments":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/issues/794/comments"},"review_comments":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/794/comments"},"review_comment":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/pulls/794/commits"},"statuses":{"href":"https://api.github.com/repos/RESTful-Drupal/restful/statuses/383ef5e586e73aa7e2110294b34292695cbc05e0"}}}}