What problem does this feature solve?
The fetch error handler is reading the body of the response it receives, first by using response.text(). However, this method has some exceptions (source) which means this can lead to errors being thrown and not being handle gracefully.
Ideal solution
Add a try/catch around this block then we could capture and normalise those as well.