A fetch() , - ( , , ..).
, (404, 500 ..), . , , , .
, , , , . , 404 , :
fetch('notExists').then(function(response) {
if (response.status !== 200) {
throw new Error("Not 200 response")
} else {
}
}).catch(function(err) {
});
myFetch(), ( -200 ).
( /).
-, , .
, , ( ). "", fetch() , , -, , . , , . , , . , -, .