{"action":"created","issue":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/115","labels_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/115/comments","events_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/115/events","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/issues/115","id":97702354,"number":115,"title":"using .andFail with a status that isn't an error code","user":{"login":"ismay","id":7355199,"avatar_url":"https://avatars.githubusercontent.com/u/7355199?v=3","gravatar_id":"","url":"https://api.github.com/users/ismay","html_url":"https://github.com/ismay","followers_url":"https://api.github.com/users/ismay/followers","following_url":"https://api.github.com/users/ismay/following{/other_user}","gists_url":"https://api.github.com/users/ismay/gists{/gist_id}","starred_url":"https://api.github.com/users/ismay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ismay/subscriptions","organizations_url":"https://api.github.com/users/ismay/orgs","repos_url":"https://api.github.com/users/ismay/repos","events_url":"https://api.github.com/users/ismay/events{/privacy}","received_events_url":"https://api.github.com/users/ismay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-28T13:05:38Z","updated_at":"2015-07-30T04:18:07Z","closed_at":null,"body":"When using:\r\n\r\n```javascript\r\nhandleUpdate().andFail({\r\n  status: 304 // won't fail\r\n})\r\n```\r\n\r\nthe update doesn't fail if the status code isn't an error code. Now this makes sense, but it would help with debugging if `ember-data-factory-guy` threw an error when using status codes that aren't actual error status codes. I took quite some time to figure that this was why the request wasn't failing.\r\n\r\n@pgvandelden"},"comment":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/comments/126178057","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/issues/115#issuecomment-126178057","issue_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/115","id":126178057,"user":{"login":"danielspaniel","id":180456,"avatar_url":"https://avatars.githubusercontent.com/u/180456?v=3","gravatar_id":"","url":"https://api.github.com/users/danielspaniel","html_url":"https://github.com/danielspaniel","followers_url":"https://api.github.com/users/danielspaniel/followers","following_url":"https://api.github.com/users/danielspaniel/following{/other_user}","gists_url":"https://api.github.com/users/danielspaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/danielspaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielspaniel/subscriptions","organizations_url":"https://api.github.com/users/danielspaniel/orgs","repos_url":"https://api.github.com/users/danielspaniel/repos","events_url":"https://api.github.com/users/danielspaniel/events{/privacy}","received_events_url":"https://api.github.com/users/danielspaniel/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T04:18:07Z","updated_at":"2015-07-30T04:18:07Z","body":"This is a funny one actually .. because I never thought anyone would do that .. but sure .. why not .. \r\nIf you have any time .. do you feel like doing a pull request to add this?  If not I can do it .. but it might take a while, since I have a few other issues that are before this and are nagging me"}}