-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi! Have you thought about implementing something like validateStatus from axios?
https://github.com/mzabriskie/axios#request-config
// `validateStatus` defines whether to resolve or reject the promise for a given
// HTTP response status code. If `validateStatus` returns `true` (or is set to `null`
// or `undefined`), the promise will be resolved; otherwise, the promise will be
// rejected.
validateStatus: function (status) {
return status >= 200 && status < 300; // default
},
I could maybe draft a PR if you think this fits the bill.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels