camsong / fetch-jsonp

Make JSONP request like window.fetch
998 stars 156 forks source link

Handling 403, 404 errors #1

Closed peterpuzos closed 9 years ago

peterpuzos commented 9 years ago

Currently, if the request fails, it just gets classified as a timeout. Is there any plans to handle 400 errors?

camsong commented 9 years ago

Not sure if we can do this. Jsonp uses a script tag to make a request, and use the callback to notify it's end, if got 400 exception, the callback will not be invoked, so we does not know the request end.