4.40.3: Surface HTTP error statuses in the browser fetch loader
Fixed
- The browser
fetchloader now rejects withCould not fetch file: <status>
on 4xx/5xx HTTP responses (except416, which thelength: 'auto'loop
still consumes as a fall-back signal) instead of feeding the error body to
the parser and surfacing a misleadingInvalid image formaterror. This
brings the browser path in line with the Node path. Both the browser and
Node loaders now reject with anErrorobject (the Node path previously
rejected with a plain string).
Full Changelog: v4.40.2...v4.40.3