rdflib.js icon indicating copy to clipboard operation
rdflib.js copied to clipboard

Add XHR failed object when calling this.fireCallbacks('fail',[...])); to...

Open slorber opened this issue 11 years ago • 1 comments

... help with issue #29 of rdflib

I didn't add the http status to the args because the most open way to handle this is to provide directly the xhr object. There may not even be any http status codes for certain errors (like same origin policy errors, timeout errors etc...)

The XHR object contains the URI, the http status code and more informations that can be useful to the callback user. This is not the most "user friendly" but at least it handles all the cases

slorber avatar Feb 05 '14 10:02 slorber

Agreed. Including future cases.

timbl avatar Dec 01 '14 00:12 timbl