When an AJAX request fails (no matter XMLHttpRequest or fetch), browsers provide no obvious way to get the reason of the fail in JS environment (lo
XMLHttpRequest
fetch