If I disconnect my Wi-Fi before sending an ajax request in IE 10 and FF, the request will be aborted. The HTTP status code is 0, and the response body is empty.
In IE 8, the response code is 12007 or 12019, and the response body is also empty.
I have some error handling for interrupted requests.
Can I be sure that the response code 12007/12019 matches the interrupted request in IE8? Or can it be sent back for other errors?
I see from MS doc that this error means:
12019 ERROR_INTERNET_INCORRECT_HANDLE_STATE The requested operation cannot be carried out because the handle supplied is not in the correct state. 12007 ERROR_INTERNET_NAME_NOT_RESOLVED The server name could not be resolved.
I just want to be sure that I am right in thinking that this error is most likely to happen when any of them have an n / w failure.
source share