HTTP Status Codes in Internet Explorer

I usually translated request.status == 0 as a connection failure.

However, I found that Internet Explorer sometimes uses HTTP 12007.

What would you recommend to the rules that I use when deciding whether to tell the user "Internet failure" by simply telling them "HTTP Status Code x"?

Is 12007 the only code for this kind of thing? (except zero)

+6
source share
1 answer

status values ​​above 12000 come from Windows and tell you that the HTTP request itself failed (i.e. there was never a request).

You can find a list of these error messages here .

+7
source

Source: https://habr.com/ru/post/905012/


All Articles