{"action":"created","issue":{"url":"https://api.github.com/repos/axios/axios/issues/1506","repository_url":"https://api.github.com/repos/axios/axios","labels_url":"https://api.github.com/repos/axios/axios/issues/1506/labels{/name}","comments_url":"https://api.github.com/repos/axios/axios/issues/1506/comments","events_url":"https://api.github.com/repos/axios/axios/issues/1506/events","html_url":"https://github.com/axios/axios/issues/1506","id":318282700,"number":1506,"title":"How can I get the Status Code of the options method?","user":{"login":"Kunoky","id":26639880,"avatar_url":"https://avatars3.githubusercontent.com/u/26639880?v=4","gravatar_id":"","url":"https://api.github.com/users/Kunoky","html_url":"https://github.com/Kunoky","followers_url":"https://api.github.com/users/Kunoky/followers","following_url":"https://api.github.com/users/Kunoky/following{/other_user}","gists_url":"https://api.github.com/users/Kunoky/gists{/gist_id}","starred_url":"https://api.github.com/users/Kunoky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kunoky/subscriptions","organizations_url":"https://api.github.com/users/Kunoky/orgs","repos_url":"https://api.github.com/users/Kunoky/repos","events_url":"https://api.github.com/users/Kunoky/events{/privacy}","received_events_url":"https://api.github.com/users/Kunoky/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-04-27T05:32:10Z","updated_at":"2018-05-10T11:46:50Z","closed_at":null,"author_association":"NONE","body":"Because of the privileges control of the server,\r\nThe Status Code that is sometimes returned is 401\r\nWhen I tried to process Status Code, I triggered an exception directly.\r\n\r\n![qq 20180427132351](https://user-images.githubusercontent.com/26639880/39346040-af7cf77a-4a1e-11e8-988a-bd654dc3218f.png)\r\n\r\n![qq 20180427133031](https://user-images.githubusercontent.com/26639880/39346141-33446296-4a1f-11e8-9fcf-71f3e821530a.png)\r\n"},"comment":{"url":"https://api.github.com/repos/axios/axios/issues/comments/388030992","html_url":"https://github.com/axios/axios/issues/1506#issuecomment-388030992","issue_url":"https://api.github.com/repos/axios/axios/issues/1506","id":388030992,"user":{"login":"kucix","id":444459,"avatar_url":"https://avatars2.githubusercontent.com/u/444459?v=4","gravatar_id":"","url":"https://api.github.com/users/kucix","html_url":"https://github.com/kucix","followers_url":"https://api.github.com/users/kucix/followers","following_url":"https://api.github.com/users/kucix/following{/other_user}","gists_url":"https://api.github.com/users/kucix/gists{/gist_id}","starred_url":"https://api.github.com/users/kucix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kucix/subscriptions","organizations_url":"https://api.github.com/users/kucix/orgs","repos_url":"https://api.github.com/users/kucix/repos","events_url":"https://api.github.com/users/kucix/events{/privacy}","received_events_url":"https://api.github.com/users/kucix/received_events","type":"User","site_admin":false},"created_at":"2018-05-10T11:46:50Z","updated_at":"2018-05-10T11:46:50Z","author_association":"NONE","body":"Same here\r\nHow do i get status == 401?\r\nIn catch block is in argument only config and empty request (XMLHttpRequest)... response is undefined\r\nIn network panel i can see status and response body (json) from server, but axios discards it"}}
{"actor":{"display_login":"kucix"}}