{"action":"created","issue":{"url":"https://api.github.com/repos/nock/nock/issues/1170","repository_url":"https://api.github.com/repos/nock/nock","labels_url":"https://api.github.com/repos/nock/nock/issues/1170/labels{/name}","comments_url":"https://api.github.com/repos/nock/nock/issues/1170/comments","events_url":"https://api.github.com/repos/nock/nock/issues/1170/events","html_url":"https://github.com/nock/nock/issues/1170","id":341863326,"node_id":"MDU6SXNzdWUzNDE4NjMzMjY=","number":1170,"title":"Status code is ignored when response payload is empty","user":{"login":"StarpTech","id":1764424,"node_id":"MDQ6VXNlcjE3NjQ0MjQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1764424?v=4","gravatar_id":"","url":"https://api.github.com/users/StarpTech","html_url":"https://github.com/StarpTech","followers_url":"https://api.github.com/users/StarpTech/followers","following_url":"https://api.github.com/users/StarpTech/following{/other_user}","gists_url":"https://api.github.com/users/StarpTech/gists{/gist_id}","starred_url":"https://api.github.com/users/StarpTech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StarpTech/subscriptions","organizations_url":"https://api.github.com/users/StarpTech/orgs","repos_url":"https://api.github.com/users/StarpTech/repos","events_url":"https://api.github.com/users/StarpTech/events{/privacy}","received_events_url":"https://api.github.com/users/StarpTech/received_events","type":"User","site_admin":false},"labels":[{"id":899922786,"node_id":"MDU6TGFiZWw4OTk5MjI3ODY=","url":"https://api.github.com/repos/nock/nock/labels/Question","name":"Question","color":"3e74b2","default":false},{"id":902733,"node_id":"MDU6TGFiZWw5MDI3MzM=","url":"https://api.github.com/repos/nock/nock/labels/pending%20investigation","name":"pending investigation","color":"02d7e1","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-17T10:39:44Z","updated_at":"2018-07-23T22:49:46Z","closed_at":null,"author_association":"NONE","body":"This will return the statusCode `200` but I expect `401`. This can be fixed when I pass an empty response body like `[401, '']`. It this the desired bahviour?\r\n```js\r\n    const verifyPublishedContentMock = Nock(callbackUrl)\r\n      .post('/')\r\n      .query(true)\r\n      .reply(function(uri, requestBody) {\r\n        return [401]\r\n      })\r\n```"},"comment":{"url":"https://api.github.com/repos/nock/nock/issues/comments/407225431","html_url":"https://github.com/nock/nock/issues/1170#issuecomment-407225431","issue_url":"https://api.github.com/repos/nock/nock/issues/1170","id":407225431,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNzIyNTQzMQ==","user":{"login":"gr2m","id":39992,"node_id":"MDQ6VXNlcjM5OTky","avatar_url":"https://avatars3.githubusercontent.com/u/39992?v=4","gravatar_id":"","url":"https://api.github.com/users/gr2m","html_url":"https://github.com/gr2m","followers_url":"https://api.github.com/users/gr2m/followers","following_url":"https://api.github.com/users/gr2m/following{/other_user}","gists_url":"https://api.github.com/users/gr2m/gists{/gist_id}","starred_url":"https://api.github.com/users/gr2m/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gr2m/subscriptions","organizations_url":"https://api.github.com/users/gr2m/orgs","repos_url":"https://api.github.com/users/gr2m/repos","events_url":"https://api.github.com/users/gr2m/events{/privacy}","received_events_url":"https://api.github.com/users/gr2m/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T22:49:46Z","updated_at":"2018-07-23T22:49:46Z","author_association":"MEMBER","body":"Could you please create a runkit notebook such as https://runkit.com/gr2m/node-nock-nock-768 to reproduce the problem?"}}
{"actor":{"display_login":"gr2m"}}