Skip to content
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
@blackxored

Description

@blackxored

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).

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions