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

In terms of naming, `response.assertOk()` might make more sense, to avoid the 'not'.

I think the trick here is to make the error message useful to reporting systems. I know error text isn't usually spec'd, but it seems like the error message should include the `status` and `statusText`.

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

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

Received on Monday, 26 June 2023 13:09:23 UTC