Does Fetch API throw errors for HTTP failures? Nope, and it drives me nuts too.
I’ve seen devs use `async/await` with a try-catch, but you still need to check `res.ok`. Feels redundant.
Someone mentioned `axios`—it’s great, but if you’re all-in on fetch, maybe try `fetch-retry` for retries on failures.
I’ve seen devs use `async/await` with a try-catch, but you still need to check `res.ok`. Feels redundant.
Someone mentioned `axios`—it’s great, but if you’re all-in on fetch, maybe try `fetch-retry` for retries on failures.
