Re: [whatwg/fetch] Streaming upload (Issue #1438)

> cancel the session when we see 401 (as well as redirects).
> then return a [network error](https://fetch.spec.whatwg.org/#concept-network-error).

I see. Thanks. How would the caller be able to distinguish between a connection error, 401 auth error, and 302 redirect? Because the recovery action in each case needs to be different, so the caller needs to know which case happened. Unfortunately, the network error speccs that the status message must be empty, so I wouldn't know how to get that information. How did you envision that?

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

Message ID: <whatwg/fetch/issues/1438/1161932159@github.com>

Received on Tuesday, 21 June 2022 15:42:44 UTC