Skip to content

Handling RequestErrors status codes #178

@amangeot

Description

@amangeot

Hello,
I have been using this middleware for a while without any problem so far. I'm curious how one can handle request errors such as a 502 Bad Gateway globally, in order to differentiate connection issues, from bad gateways.

For example, below is a 502 Bad Gateway, logging actions via a middleware coming after redux-api-middleware.

How can one access the response status code (502) inside a middleware?

Thank you,

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions