forwardemail / forwardemail/superagent

Retry only on when certain response codes

Open
#1,635 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
16.6k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

I need to retry request on certain response codes, like 401, 406, Do `superagent` support this?

Example:
```
request
.get('https://example.com/search')
.retryWhen([401, 406]) <-- like this
.then(finished);
.catch(failed);
```

Any help would appreciated. Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.