Re: [fetch] Option to require response.ok (#103)

> Developer request for this http://tjvantoll.com/2015/09/13/fetch-and-errors/

Well, I was trying to show that the default behavior of `fetch()` went against my expectations, because it differs from the behavior of `$.ajax` in jQuery and `$http` in Angular. I'm not sure a flag is going to help here because the default behavior won't change, which is the thing that threw me off.

Honestly I don't think this is that big of a deal, as after 5 minutes of Googling I knew what I needed to do, and I know how to use the `fetch()` in the future. I wrote the article to help get the word out because I'm confident I won't be the first person to run into this. (I quickly polled a few friends and colleagues, and every one of them expected a 500 response to go into `catch()` and not `then()`.)

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/103#issuecomment-140547680

Received on Tuesday, 15 September 2015 21:19:45 UTC