`fetch` returns a Promise for a `Response`. It does not reject on 4xx/5xx HTTP status codes; developers must explicitly check `response.ok`.
js
const res = await fetch("[https://api.example.com](https://api.example.com)");
if (!res.ok) throw new Error(`HTTP error ${res.status}`);
const data = await res.json();