- From: Justin Fagnani <notifications@github.com>
- Date: Tue, 27 Jun 2023 12:38:55 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Tuesday, 27 June 2023 19:39:00 UTC
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