Error handling
fetch("https://jsonplaceholder.typicode.com/users/1").then(o=>{if(console.log("response",o),!o.ok){if(404===o.status)throw Error("The requested user was not found");throw Error("Something went wrong with your request")}return o.json()}).then(o=>{console.log("User found",o)}).catch(o=>{console.error(o)});
//# sourceMappingURL=error.js.map