I thought the “error” event would be thrown for network errors (status 0), but it is only thrown for server errors.
So, if I want to handle all XMLHttpRequest errors at one place, I can go back to using a single “readystatechange” listener with this.readyState === XMLHttpRequest.DONE (4):
https://github.com/search?q=repo%3Ajesus2099%2Fkonami-command+XMLHttpRequest&type=code
I thought the “error” event would be thrown for network errors (status 0), but it is only thrown for server errors.
So, if I want to handle all XMLHttpRequest errors at one place, I can go back to using a single “readystatechange” listener with
this.readyState === XMLHttpRequest.DONE(4):https://github.com/search?q=repo%3Ajesus2099%2Fkonami-command+XMLHttpRequest&type=code