http-status-codes
http-status-codes copied to clipboard
Missing status codes for newtork failures
Superagent has a retry method which use the following status codes :
- 408
- 413
- 429
- 500
- 502
- 503
- 504
- 521
- 522
- 524
You will find the official documentation of this retry method here : https://visionmedia.github.io/superagent/#retrying-requests
Status codes 521, 522 and 524 are not supported by this lib, could it be possible to add them ?
Do we still need this? i can work on this issue
http-status-codes
Hdg
I have been check and confirm, here is the update:
- [x] 408
- [x] 413
- [x] 429
- [x] 500
- [x] 502
- [x] 503
- [x] 504
Only left these status-code below:
- [ ] 521
- [ ] 522
- [ ] 524
cc: @victorpers , @prettymuchbryce .
521
/522
/524
are all Cloudflare-specific status codes without official IETF specs. However, because of the ubiquity of Cloudflare, I am OK with adding them, but we should specify this fact in codes.json
, as well we should find pertinent documentation to link there as well (even though it won't be an official spec).
i can work on it @prettymuchbryce . Noted, I'll add this fact in codes.json regarding the status codes without official IETF specs.