{"action":"created","comment":{"url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/comments/63126739","id":63126739,"diff_hunk":"@@ -165,7 +165,7 @@ class Router\n           kind:           \"Errors\",\n           id:             Service.generateUUID()\n           created_at:     (new Date()).toISOString(),\n-          errors: [\"#{http_request.path} not found\"]\n+          errors: [{code: \"generic.not_found\", message: \"Router: #{http_request.path} not found\"}]","path":"src/router.coffee","position":14,"original_position":14,"commit_id":"eeed6a15bcfd51ba1db320d237fffcae0f5b9bb1","original_commit_id":"eeed6a15bcfd51ba1db320d237fffcae0f5b9bb1","user":{"login":"pond","id":188364,"avatar_url":"https://avatars.githubusercontent.com/u/188364?v=3","gravatar_id":"","url":"https://api.github.com/users/pond","html_url":"https://github.com/pond","followers_url":"https://api.github.com/users/pond/followers","following_url":"https://api.github.com/users/pond/following{/other_user}","gists_url":"https://api.github.com/users/pond/gists{/gist_id}","starred_url":"https://api.github.com/users/pond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pond/subscriptions","organizations_url":"https://api.github.com/users/pond/orgs","repos_url":"https://api.github.com/users/pond/repos","events_url":"https://api.github.com/users/pond/events{/privacy}","received_events_url":"https://api.github.com/users/pond/received_events","type":"User","site_admin":false},"body":"No, I mean your message should be split into message and reference fields in addition to code. The message doesn't have the \"not found\" thing munged in - that goes in \"refeference\". If you used \"platform.not_found\" code it'd be optional, but since you're using \"generic.not_found\" it's mandatory. And yes it's in Hoodoo, see:\r\n\r\nhttps://github.com/LoyaltyNZ/hoodoo/tree/master/docs/api_specification#error.common.codes.generic","created_at":"2016-05-13T02:40:37Z","updated_at":"2016-05-13T02:40:37Z","html_url":"https://github.com/LoyaltyNZ/alchemy-router/pull/12#discussion_r63126739","pull_request_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/comments/63126739"},"html":{"href":"https://github.com/LoyaltyNZ/alchemy-router/pull/12#discussion_r63126739"},"pull_request":{"href":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/12","id":69934226,"html_url":"https://github.com/LoyaltyNZ/alchemy-router/pull/12","diff_url":"https://github.com/LoyaltyNZ/alchemy-router/pull/12.diff","patch_url":"https://github.com/LoyaltyNZ/alchemy-router/pull/12.patch","issue_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/issues/12","number":12,"state":"open","locked":false,"title":"Make errors match hoodoo spec","user":{"login":"waynehoover","id":115143,"avatar_url":"https://avatars.githubusercontent.com/u/115143?v=3","gravatar_id":"","url":"https://api.github.com/users/waynehoover","html_url":"https://github.com/waynehoover","followers_url":"https://api.github.com/users/waynehoover/followers","following_url":"https://api.github.com/users/waynehoover/following{/other_user}","gists_url":"https://api.github.com/users/waynehoover/gists{/gist_id}","starred_url":"https://api.github.com/users/waynehoover/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waynehoover/subscriptions","organizations_url":"https://api.github.com/users/waynehoover/orgs","repos_url":"https://api.github.com/users/waynehoover/repos","events_url":"https://api.github.com/users/waynehoover/events{/privacy}","received_events_url":"https://api.github.com/users/waynehoover/received_events","type":"User","site_admin":false},"body":"Router errors now match the hoodoo spec.","created_at":"2016-05-13T02:16:05Z","updated_at":"2016-05-13T02:40:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"901331921ded252ed5cad5785b10f9d938177aa7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/12/commits","review_comments_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/12/comments","review_comment_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/issues/12/comments","statuses_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/statuses/eeed6a15bcfd51ba1db320d237fffcae0f5b9bb1","head":{"label":"LoyaltyNZ:make_errors_match_hoodoo_spec","ref":"make_errors_match_hoodoo_spec","sha":"eeed6a15bcfd51ba1db320d237fffcae0f5b9bb1","user":{"login":"LoyaltyNZ","id":1383432,"avatar_url":"https://avatars.githubusercontent.com/u/1383432?v=3","gravatar_id":"","url":"https://api.github.com/users/LoyaltyNZ","html_url":"https://github.com/LoyaltyNZ","followers_url":"https://api.github.com/users/LoyaltyNZ/followers","following_url":"https://api.github.com/users/LoyaltyNZ/following{/other_user}","gists_url":"https://api.github.com/users/LoyaltyNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/LoyaltyNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoyaltyNZ/subscriptions","organizations_url":"https://api.github.com/users/LoyaltyNZ/orgs","repos_url":"https://api.github.com/users/LoyaltyNZ/repos","events_url":"https://api.github.com/users/LoyaltyNZ/events{/privacy}","received_events_url":"https://api.github.com/users/LoyaltyNZ/received_events","type":"Organization","site_admin":false},"repo":{"id":41155874,"name":"alchemy-router","full_name":"LoyaltyNZ/alchemy-router","owner":{"login":"LoyaltyNZ","id":1383432,"avatar_url":"https://avatars.githubusercontent.com/u/1383432?v=3","gravatar_id":"","url":"https://api.github.com/users/LoyaltyNZ","html_url":"https://github.com/LoyaltyNZ","followers_url":"https://api.github.com/users/LoyaltyNZ/followers","following_url":"https://api.github.com/users/LoyaltyNZ/following{/other_user}","gists_url":"https://api.github.com/users/LoyaltyNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/LoyaltyNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoyaltyNZ/subscriptions","organizations_url":"https://api.github.com/users/LoyaltyNZ/orgs","repos_url":"https://api.github.com/users/LoyaltyNZ/repos","events_url":"https://api.github.com/users/LoyaltyNZ/events{/privacy}","received_events_url":"https://api.github.com/users/LoyaltyNZ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LoyaltyNZ/alchemy-router","description":"Router for the alchemy framework","fork":false,"url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router","forks_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/forks","keys_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/teams","hooks_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/hooks","issue_events_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/issues/events{/number}","events_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/events","assignees_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/assignees{/user}","branches_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/branches{/branch}","tags_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/tags","blobs_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/statuses/{sha}","languages_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/languages","stargazers_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/stargazers","contributors_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/contributors","subscribers_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/subscribers","subscription_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/subscription","commits_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/contents/{+path}","compare_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/merges","archive_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/downloads","issues_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/issues{/number}","pulls_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls{/number}","milestones_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/milestones{/number}","notifications_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/labels{/name}","releases_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/releases{/id}","deployments_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/deployments","created_at":"2015-08-21T12:59:16Z","updated_at":"2016-03-28T18:59:38Z","pushed_at":"2016-05-13T02:16:05Z","git_url":"git://github.com/LoyaltyNZ/alchemy-router.git","ssh_url":"git@github.com:LoyaltyNZ/alchemy-router.git","clone_url":"https://github.com/LoyaltyNZ/alchemy-router.git","svn_url":"https://github.com/LoyaltyNZ/alchemy-router","homepage":null,"size":465,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"LoyaltyNZ:master","ref":"master","sha":"b25e312f688d9c133ba1ccd7a913c960100234ee","user":{"login":"LoyaltyNZ","id":1383432,"avatar_url":"https://avatars.githubusercontent.com/u/1383432?v=3","gravatar_id":"","url":"https://api.github.com/users/LoyaltyNZ","html_url":"https://github.com/LoyaltyNZ","followers_url":"https://api.github.com/users/LoyaltyNZ/followers","following_url":"https://api.github.com/users/LoyaltyNZ/following{/other_user}","gists_url":"https://api.github.com/users/LoyaltyNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/LoyaltyNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoyaltyNZ/subscriptions","organizations_url":"https://api.github.com/users/LoyaltyNZ/orgs","repos_url":"https://api.github.com/users/LoyaltyNZ/repos","events_url":"https://api.github.com/users/LoyaltyNZ/events{/privacy}","received_events_url":"https://api.github.com/users/LoyaltyNZ/received_events","type":"Organization","site_admin":false},"repo":{"id":41155874,"name":"alchemy-router","full_name":"LoyaltyNZ/alchemy-router","owner":{"login":"LoyaltyNZ","id":1383432,"avatar_url":"https://avatars.githubusercontent.com/u/1383432?v=3","gravatar_id":"","url":"https://api.github.com/users/LoyaltyNZ","html_url":"https://github.com/LoyaltyNZ","followers_url":"https://api.github.com/users/LoyaltyNZ/followers","following_url":"https://api.github.com/users/LoyaltyNZ/following{/other_user}","gists_url":"https://api.github.com/users/LoyaltyNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/LoyaltyNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LoyaltyNZ/subscriptions","organizations_url":"https://api.github.com/users/LoyaltyNZ/orgs","repos_url":"https://api.github.com/users/LoyaltyNZ/repos","events_url":"https://api.github.com/users/LoyaltyNZ/events{/privacy}","received_events_url":"https://api.github.com/users/LoyaltyNZ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LoyaltyNZ/alchemy-router","description":"Router for the alchemy framework","fork":false,"url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router","forks_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/forks","keys_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/teams","hooks_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/hooks","issue_events_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/issues/events{/number}","events_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/events","assignees_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/assignees{/user}","branches_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/branches{/branch}","tags_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/tags","blobs_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/git/refs{/sha}","trees_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/statuses/{sha}","languages_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/languages","stargazers_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/stargazers","contributors_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/contributors","subscribers_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/subscribers","subscription_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/subscription","commits_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/commits{/sha}","git_commits_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/git/commits{/sha}","comments_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/comments{/number}","issue_comment_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/issues/comments{/number}","contents_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/contents/{+path}","compare_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/merges","archive_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/downloads","issues_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/issues{/number}","pulls_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls{/number}","milestones_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/milestones{/number}","notifications_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/labels{/name}","releases_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/releases{/id}","deployments_url":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/deployments","created_at":"2015-08-21T12:59:16Z","updated_at":"2016-03-28T18:59:38Z","pushed_at":"2016-05-13T02:16:05Z","git_url":"git://github.com/LoyaltyNZ/alchemy-router.git","ssh_url":"git@github.com:LoyaltyNZ/alchemy-router.git","clone_url":"https://github.com/LoyaltyNZ/alchemy-router.git","svn_url":"https://github.com/LoyaltyNZ/alchemy-router","homepage":null,"size":465,"stargazers_count":1,"watchers_count":1,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/12"},"html":{"href":"https://github.com/LoyaltyNZ/alchemy-router/pull/12"},"issue":{"href":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/issues/12"},"comments":{"href":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/LoyaltyNZ/alchemy-router/statuses/eeed6a15bcfd51ba1db320d237fffcae0f5b9bb1"}}}}