{"action":"created","issue":{"url":"https://api.github.com/repos/webcompat/webcompat.com/issues/667","labels_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/667/labels{/name}","comments_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/667/comments","events_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/667/events","html_url":"https://github.com/webcompat/webcompat.com/issues/667","id":99596011,"number":667,"title":"[http] JSON errors for APIs communications","user":{"login":"karlcow","id":505230,"avatar_url":"https://avatars.githubusercontent.com/u/505230?v=3","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/webcompat/webcompat.com/labels/bug","name":"bug","color":"e11d21"},{"url":"https://api.github.com/repos/webcompat/webcompat.com/labels/good-first-patch","name":"good-first-patch","color":"009800"},{"url":"https://api.github.com/repos/webcompat/webcompat.com/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/webcompat/webcompat.com/labels/needs-test","name":"needs-test","color":"1F384C"},{"url":"https://api.github.com/repos/webcompat/webcompat.com/labels/site-development","name":"site-development","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"karlcow","id":505230,"avatar_url":"https://avatars.githubusercontent.com/u/505230?v=3","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-08-07T07:32:15Z","updated_at":"2015-08-18T03:32:37Z","closed_at":null,"body":"Tested locally.\r\n\r\n```\r\n→ http GET http://localhost:5000/api/issues/100/labels 'Accept: application/json'\r\n```\r\n\r\nWhen doing this call, we receive in return a `404 Not Found`, which is fine except for the body which is a full HTML file. Unnecessary bytes on the wire.\r\n\r\nWe might want to send either nothing in the body `Content-Length: 0` or a very simple JSON body explaining the error. \r\n"},"comment":{"url":"https://api.github.com/repos/webcompat/webcompat.com/issues/comments/132058898","html_url":"https://github.com/webcompat/webcompat.com/issues/667#issuecomment-132058898","issue_url":"https://api.github.com/repos/webcompat/webcompat.com/issues/667","id":132058898,"user":{"login":"karlcow","id":505230,"avatar_url":"https://avatars.githubusercontent.com/u/505230?v=3","gravatar_id":"","url":"https://api.github.com/users/karlcow","html_url":"https://github.com/karlcow","followers_url":"https://api.github.com/users/karlcow/followers","following_url":"https://api.github.com/users/karlcow/following{/other_user}","gists_url":"https://api.github.com/users/karlcow/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcow/subscriptions","organizations_url":"https://api.github.com/users/karlcow/orgs","repos_url":"https://api.github.com/users/karlcow/repos","events_url":"https://api.github.com/users/karlcow/events{/privacy}","received_events_url":"https://api.github.com/users/karlcow/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T03:32:37Z","updated_at":"2015-08-18T03:32:37Z","body":"OK my previous comment seems to be what has to be done. I tested on the CLI and it's working as expected. Now I have to figure out how to configure `app.get` so it sends `Accept: application/json`."}}