Skip to content

Why do HTTP status errors only return the code and error text? #194

Description

@IronSean

This probably isn't an issue or an enhancement request. I am just trying to understand the thinking of returning only the statusCode and statusText when experiencing an error during fetch. Sometimes the API returns detailed information about what the problem is in the response body, and this strips it away. A third property which is the response body could expose that again.

Is this just implemented this was as it's a good starting point for most cases and a user of redux-api can easily implement their own adapter if they need different behaviour?

return Promise.reject({ status, statusText });

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions