{"action":"created","issue":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/1021","labels_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1021/labels{/name}","comments_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1021/comments","events_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1021/events","html_url":"https://github.com/tmpvar/jsdom/issues/1021","id":56946714,"number":1021,"title":"How to get the http response status code?","user":{"login":"rbabayoff","id":3960877,"avatar_url":"https://avatars.githubusercontent.com/u/3960877?v=3","gravatar_id":"","url":"https://api.github.com/users/rbabayoff","html_url":"https://github.com/rbabayoff","followers_url":"https://api.github.com/users/rbabayoff/followers","following_url":"https://api.github.com/users/rbabayoff/following{/other_user}","gists_url":"https://api.github.com/users/rbabayoff/gists{/gist_id}","starred_url":"https://api.github.com/users/rbabayoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rbabayoff/subscriptions","organizations_url":"https://api.github.com/users/rbabayoff/orgs","repos_url":"https://api.github.com/users/rbabayoff/repos","events_url":"https://api.github.com/users/rbabayoff/events{/privacy}","received_events_url":"https://api.github.com/users/rbabayoff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-08T10:23:30Z","updated_at":"2015-02-09T18:43:40Z","closed_at":"2015-02-09T04:33:30Z","body":"Thanks\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tmpvar/jsdom/issues/comments/73564678","html_url":"https://github.com/tmpvar/jsdom/issues/1021#issuecomment-73564678","issue_url":"https://api.github.com/repos/tmpvar/jsdom/issues/1021","id":73564678,"user":{"login":"domenic","id":617481,"avatar_url":"https://avatars.githubusercontent.com/u/617481?v=3","gravatar_id":"","url":"https://api.github.com/users/domenic","html_url":"https://github.com/domenic","followers_url":"https://api.github.com/users/domenic/followers","following_url":"https://api.github.com/users/domenic/following{/other_user}","gists_url":"https://api.github.com/users/domenic/gists{/gist_id}","starred_url":"https://api.github.com/users/domenic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domenic/subscriptions","organizations_url":"https://api.github.com/users/domenic/orgs","repos_url":"https://api.github.com/users/domenic/repos","events_url":"https://api.github.com/users/domenic/events{/privacy}","received_events_url":"https://api.github.com/users/domenic/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T18:43:39Z","updated_at":"2015-02-09T18:43:39Z","body":"I think there's plenty of reason to process 4xx or 5xx responses. They still have DOMs!\r\n\r\nIf you want to filter certain responses, you'd be best off just doing the HTTP request yourself, checking any preconditions, and then if they are met you can feed them to `jsdom.jsdom`."}}