{"action":"created","issue":{"url":"https://api.github.com/repos/CodaFi/AFNetworking-RACExtensions/issues/40","labels_url":"https://api.github.com/repos/CodaFi/AFNetworking-RACExtensions/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/CodaFi/AFNetworking-RACExtensions/issues/40/comments","events_url":"https://api.github.com/repos/CodaFi/AFNetworking-RACExtensions/issues/40/events","html_url":"https://github.com/CodaFi/AFNetworking-RACExtensions/issues/40","id":54907056,"number":40,"title":"Use NSError to relay status codes","user":{"login":"powerje","id":481245,"avatar_url":"https://avatars.githubusercontent.com/u/481245?v=3","gravatar_id":"","url":"https://api.github.com/users/powerje","html_url":"https://github.com/powerje","followers_url":"https://api.github.com/users/powerje/followers","following_url":"https://api.github.com/users/powerje/following{/other_user}","gists_url":"https://api.github.com/users/powerje/gists{/gist_id}","starred_url":"https://api.github.com/users/powerje/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/powerje/subscriptions","organizations_url":"https://api.github.com/users/powerje/orgs","repos_url":"https://api.github.com/users/powerje/repos","events_url":"https://api.github.com/users/powerje/events{/privacy}","received_events_url":"https://api.github.com/users/powerje/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-20T16:45:05Z","updated_at":"2015-02-08T05:10:23Z","closed_at":"2015-02-06T15:32:28Z","body":"I like that now the JSON and HTTPResponse objects come back in a RACTuple in `sendNext` but often I want to know the status code in `sendError` as well. My solution to this is to replace the 'code' of the NSError sent through with the http status code of the failing request.\r\n\r\nI made a similar change to Moya in https://github.com/ashfurrow/Moya/pull/50, would a change like that be welcome here?"},"comment":{"url":"https://api.github.com/repos/CodaFi/AFNetworking-RACExtensions/issues/comments/73397447","html_url":"https://github.com/CodaFi/AFNetworking-RACExtensions/issues/40#issuecomment-73397447","issue_url":"https://api.github.com/repos/CodaFi/AFNetworking-RACExtensions/issues/40","id":73397447,"user":{"login":"rayshih","id":613044,"avatar_url":"https://avatars.githubusercontent.com/u/613044?v=3","gravatar_id":"","url":"https://api.github.com/users/rayshih","html_url":"https://github.com/rayshih","followers_url":"https://api.github.com/users/rayshih/followers","following_url":"https://api.github.com/users/rayshih/following{/other_user}","gists_url":"https://api.github.com/users/rayshih/gists{/gist_id}","starred_url":"https://api.github.com/users/rayshih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rayshih/subscriptions","organizations_url":"https://api.github.com/users/rayshih/orgs","repos_url":"https://api.github.com/users/rayshih/repos","events_url":"https://api.github.com/users/rayshih/events{/privacy}","received_events_url":"https://api.github.com/users/rayshih/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T05:10:23Z","updated_at":"2015-02-08T05:10:23Z","body":"I have a question: How to run and write a test for this extension? \r\n\r\nSince I couldn't even do `pod install` by this extension only, I just used our project as a test environment."}}