{"action":"created","issue":{"url":"https://api.github.com/repos/github/fetch/issues/201","repository_url":"https://api.github.com/repos/github/fetch","labels_url":"https://api.github.com/repos/github/fetch/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/github/fetch/issues/201/comments","events_url":"https://api.github.com/repos/github/fetch/issues/201/events","html_url":"https://github.com/github/fetch/issues/201","id":107161281,"number":201,"title":"Catch a 401","user":{"login":"vdclouis","id":1033998,"avatar_url":"https://avatars.githubusercontent.com/u/1033998?v=3","gravatar_id":"","url":"https://api.github.com/users/vdclouis","html_url":"https://github.com/vdclouis","followers_url":"https://api.github.com/users/vdclouis/followers","following_url":"https://api.github.com/users/vdclouis/following{/other_user}","gists_url":"https://api.github.com/users/vdclouis/gists{/gist_id}","starred_url":"https://api.github.com/users/vdclouis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vdclouis/subscriptions","organizations_url":"https://api.github.com/users/vdclouis/orgs","repos_url":"https://api.github.com/users/vdclouis/repos","events_url":"https://api.github.com/users/vdclouis/events{/privacy}","received_events_url":"https://api.github.com/users/vdclouis/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2015-09-18T09:05:56Z","updated_at":"2016-11-08T15:09:07Z","closed_at":"2015-09-18T16:05:42Z","body":"Is there a way to catch a 401 error code? I first thought I could add it to the `checkStatus` function but\nit seems that a 401 does reject the promise.\n\nBut there is little to no information in the error object.\n![https://cldup.com/R8VE0alk2z.png](https://cldup.com/R8VE0alk2z.png)\n\nAm I missing something?\n"},"comment":{"url":"https://api.github.com/repos/github/fetch/issues/comments/259161637","html_url":"https://github.com/github/fetch/issues/201#issuecomment-259161637","issue_url":"https://api.github.com/repos/github/fetch/issues/201","id":259161637,"user":{"login":"NeXTs","id":1753208,"avatar_url":"https://avatars.githubusercontent.com/u/1753208?v=3","gravatar_id":"","url":"https://api.github.com/users/NeXTs","html_url":"https://github.com/NeXTs","followers_url":"https://api.github.com/users/NeXTs/followers","following_url":"https://api.github.com/users/NeXTs/following{/other_user}","gists_url":"https://api.github.com/users/NeXTs/gists{/gist_id}","starred_url":"https://api.github.com/users/NeXTs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NeXTs/subscriptions","organizations_url":"https://api.github.com/users/NeXTs/orgs","repos_url":"https://api.github.com/users/NeXTs/repos","events_url":"https://api.github.com/users/NeXTs/events{/privacy}","received_events_url":"https://api.github.com/users/NeXTs/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T15:09:06Z","updated_at":"2016-11-08T15:09:06Z","body":"@vdclouis Hey Louis, was you able to find a way to detect 401 code for rejected by CORS request?\r\nI'm stuck with same problem, I need to catch 503 status code"}}
{"actor":{"display_login":"NeXTs"}}