fetch("/article/promise/user.json")
.then(response => {
if (response.status >= 400) {
throw new Error('Oops');
}
return response.text(); // or response.json()
})
.then(response => console.log(`Ок: ${response}`))
.catch(error => console.log(`Не лезь: ${error}`));
API просто не работает