Re: [whatwg/fetch] Consider response.throwIfNotOk() (Issue #1679)

Another option is to add a new option to `fetch()`:

```ts
fetch(url, { throwIfNotOk: true };
```

Though `response.assertOk()` is usable in more than just fetch.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/1679#issuecomment-1610109047
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/issues/1679/1610109047@github.com>

Received on Tuesday, 27 June 2023 19:39:00 UTC