The object passed to the "error" callback is not in fact an error object, it's a progress event. It is devoid of any information about the error, and so is the XHR object itself. We cannot provide accurate information about the error, so we need to return a generic error.
The object passed to the "error" callback is not in fact an error object, it's a progress event. It is devoid of any information about the error, and so is the XHR object itself. We cannot provide accurate information about the error, so we need to return a generic error.