I've been searching for a while now and I can't find the exact list of all fail to load error code/error description of google chrome.
I'm talking about this the highlighted text
Can someone give me a link?
By the way for only listing all error codes
USE :
chrome://network-errors/
It's about 220 in total as of now in chrome version (69.0.3497.100)
I did some digging and I must admit, it's not easy to find a full exhaustive list of all (Chromium) networking error codes.
The full list of all Chromium error codes can be found in the file net_error_list.h
:
https://cs.chromium.org/chromium/src/net/base/net_error_list.h
It looks like Google Chrome prepends ERR_
to all the codes listed in the above list.
However, error codes in XHR error responses are slightly different. These codes follow the format of the linux system file errno.h
as defined by POSIX.1-2001, or C99:
http://man7.org/linux/man-pages/man3/errno.3.html
Finally, some common NodeJS errors have been listed at the NodeJS API Documentation: https://nodejs.org/api/errors.html#errors_common_system_errors
I'd like to end this answer with a simple comparison example. The error of an operation timeout
would be named as follows by the listed 'standards':
TIMED_OUT
internally in Chromium.ERR_TIMED_OUT
displayed in Google Chrome.ETIMEDOUT
in the XHR error object (error.code
).Using your example:
CONNECTION_REFUSED
-> internally in ChromiumERR_CONNECTION_REFUSED
-> displayed in Google ChromeECONNREFUSED
-> in linux (POSIX.1) or network error stacksIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With