This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
Allow passing unparsed response body to error handler #154
Closed
Description
I've this specific backend that returns 400 but also a payload (i.e body) indicating the errors. Dropping this library into the project prevents me from doing further processing of that body as I would do with native fetch's catch right before parsing. Error handler only seems to be given a message (since respInfo
is broken, as you need to add it as a property or make a custom Error class), and even then no response body that I can continue processing on after checking the status code (i.e calling .json() on it).