TLDR Tech / Dev
Fetch Needs Error Codes
Fetch collapses every network failure into an identical bare TypeError, discarding HTTP/2 and HTTP/3's typed error codes. A TC39 proposal adds a standardized .code property to Error that would let Fetch thread that through without a new API surface, via a small taxonomy of abstract codes.
Read the full story