{"action":"created","issue":{"url":"https://api.github.com/repos/sindresorhus/got/issues/251","repository_url":"https://api.github.com/repos/sindresorhus/got","labels_url":"https://api.github.com/repos/sindresorhus/got/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/got/issues/251/comments","events_url":"https://api.github.com/repos/sindresorhus/got/issues/251/events","html_url":"https://github.com/sindresorhus/got/issues/251","id":196636230,"number":251,"title":"Got throws an HTTPError for 304 responses","user":{"login":"lukechilds","id":2123375,"avatar_url":"https://avatars.githubusercontent.com/u/2123375?v=3","gravatar_id":"","url":"https://api.github.com/users/lukechilds","html_url":"https://github.com/lukechilds","followers_url":"https://api.github.com/users/lukechilds/followers","following_url":"https://api.github.com/users/lukechilds/following{/other_user}","gists_url":"https://api.github.com/users/lukechilds/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechilds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechilds/subscriptions","organizations_url":"https://api.github.com/users/lukechilds/orgs","repos_url":"https://api.github.com/users/lukechilds/repos","events_url":"https://api.github.com/users/lukechilds/events{/privacy}","received_events_url":"https://api.github.com/users/lukechilds/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2016-12-20T10:24:22Z","updated_at":"2016-12-20T14:48:38Z","closed_at":null,"body":"Currently implementing an API client that supports caching. It sends if-modified-since headers and will sometimes get a 304 response. If I get a 304, got throws an HTTPError. I can't catch the error and then do my stuff because the error doesn't contain the headers.\r\n\r\nI noticed this in the readme:\r\n\r\n>#### got.HTTPError\r\n>\r\n>When server response code is not 2xx. Contains `statusCode` and `statusMessage`.\r\n\r\nWhy isn't 304 allowed?"},"comment":{"url":"https://api.github.com/repos/sindresorhus/got/issues/comments/268261497","html_url":"https://github.com/sindresorhus/got/issues/251#issuecomment-268261497","issue_url":"https://api.github.com/repos/sindresorhus/got/issues/251","id":268261497,"user":{"login":"lukechilds","id":2123375,"avatar_url":"https://avatars.githubusercontent.com/u/2123375?v=3","gravatar_id":"","url":"https://api.github.com/users/lukechilds","html_url":"https://github.com/lukechilds","followers_url":"https://api.github.com/users/lukechilds/followers","following_url":"https://api.github.com/users/lukechilds/following{/other_user}","gists_url":"https://api.github.com/users/lukechilds/gists{/gist_id}","starred_url":"https://api.github.com/users/lukechilds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukechilds/subscriptions","organizations_url":"https://api.github.com/users/lukechilds/orgs","repos_url":"https://api.github.com/users/lukechilds/repos","events_url":"https://api.github.com/users/lukechilds/events{/privacy}","received_events_url":"https://api.github.com/users/lukechilds/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T14:48:38Z","updated_at":"2016-12-20T14:48:38Z","body":"@julien-f Ah I see, that's a valid point."}}
{"actor":{"display_login":"lukechilds"}}