Retry on 413 (#540)

This commit is contained in:
Konrad Pabjan authored and GitHub committed 2020-08-04 16:57:38 +02:00
1 parent 9772449825
commit 975f43d6c7
5 files changed
+9 -3

No files matched your search

+2 -1
View File
@@ -74,7 +74,8 @@ export function isRetryableStatusCode(statusCode?: number): boolean {
HttpCodes.BadGateway,
HttpCodes.ServiceUnavailable,
HttpCodes.GatewayTimeout,
HttpCodes.TooManyRequests
HttpCodes.TooManyRequests,
413 // Payload Too Large
]
return retryableStatusCodes.includes(statusCode)
}