Yep, fetch only throws for network issues, not HTTP status codes. It’s a common gotcha.
I just add `.catch()` to handle network errors and then check `res.ok` inside the `.then()`. Feels clunky, but it works.
Pro tip: Use `console.error` in the catch block so you don’t miss silent failures.
I just add `.catch()` to handle network errors and then check `res.ok` inside the `.then()`. Feels clunky, but it works.
Pro tip: Use `console.error` in the catch block so you don’t miss silent failures.
