fix: ok statusCode can be 200..299 (#7919)

This commit is contained in:
Khafra
2022-05-14 12:38:05 -04:00
committed by GitHub
parent b1a3aa97ea
commit d1504f2ae1
2 changed files with 16 additions and 1 deletions

View File

@@ -391,7 +391,7 @@ export class SequentialHandler implements IHandler {
}
}
if (status === 200) {
if (status >= 200 && status < 300) {
return parseResponse(res);
} else if (status === 429) {
// A rate limit was hit - this may happen if the route isn't associated with an official bucket hash yet, or when first globally rate limited