{"action":"created","issue":{"url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/152","labels_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/152/comments","events_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/152/events","html_url":"https://github.com/AliSoftware/OHHTTPStubs/issues/152","id":129080557,"number":152,"title":"Response with empty body","user":{"login":"vicmosin","id":612207,"avatar_url":"https://avatars.githubusercontent.com/u/612207?v=3","gravatar_id":"","url":"https://api.github.com/users/vicmosin","html_url":"https://github.com/vicmosin","followers_url":"https://api.github.com/users/vicmosin/followers","following_url":"https://api.github.com/users/vicmosin/following{/other_user}","gists_url":"https://api.github.com/users/vicmosin/gists{/gist_id}","starred_url":"https://api.github.com/users/vicmosin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicmosin/subscriptions","organizations_url":"https://api.github.com/users/vicmosin/orgs","repos_url":"https://api.github.com/users/vicmosin/repos","events_url":"https://api.github.com/users/vicmosin/events{/privacy}","received_events_url":"https://api.github.com/users/vicmosin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-27T09:17:29Z","updated_at":"2016-01-27T16:06:53Z","closed_at":null,"body":"I try to simulate a HTTP's `204` response without body. Both\r\n```\r\nreturn OHHTTPStubsResponse(data: \"\".dataUsingEncoding(NSUTF8StringEncoding)!, statusCode: code, headers: nil)\r\n```\r\nand \r\n```\r\nreturn OHHTTPStubsResponse(data: NSData(), statusCode: code, headers: nil)\r\n```\r\ngives me `null` value as a response so I can't check for `XCTAssertNil`assertion. Is there another way?"},"comment":{"url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/comments/175713929","html_url":"https://github.com/AliSoftware/OHHTTPStubs/issues/152#issuecomment-175713929","issue_url":"https://api.github.com/repos/AliSoftware/OHHTTPStubs/issues/152","id":175713929,"user":{"login":"samirGuerdah","id":587505,"avatar_url":"https://avatars.githubusercontent.com/u/587505?v=3","gravatar_id":"","url":"https://api.github.com/users/samirGuerdah","html_url":"https://github.com/samirGuerdah","followers_url":"https://api.github.com/users/samirGuerdah/followers","following_url":"https://api.github.com/users/samirGuerdah/following{/other_user}","gists_url":"https://api.github.com/users/samirGuerdah/gists{/gist_id}","starred_url":"https://api.github.com/users/samirGuerdah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samirGuerdah/subscriptions","organizations_url":"https://api.github.com/users/samirGuerdah/orgs","repos_url":"https://api.github.com/users/samirGuerdah/repos","events_url":"https://api.github.com/users/samirGuerdah/events{/privacy}","received_events_url":"https://api.github.com/users/samirGuerdah/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T16:06:53Z","updated_at":"2016-01-27T16:06:53Z","body":"Hello,\r\n\r\nI have tested the same code you have posted and the OHHTTPStubsResponse instance created is not nil.  Can you show more code how you are doing it ? "}}