2 ms·
I didn't realize this was a point of contention. I had jQuery.ajax in mind when I wrote this, if I recall correctly they reject the promise when it doesn't rece
by TheAceOfHearts 10y ago
I didn't realize this was a point of contention. I had jQuery.ajax in mind when I wrote this, if I recall correctly they reject the promise when it doesn't receive a 2XX.
For comparison, the new fetch API resolves to a response which can have any status code.