A common beginner mistake is thinking .catch() handles API errors like 404 or 500. It doesn’t!
Note:
fetch() only rejects on network failure.
const res = await fetch(url);
if (!res.ok) throw new Error('API Error: ' + res.status);
