mirror of
https://github.com/azures04/crafatar.git
synced 2026-03-21 23:41:18 +01:00
catch ExtremelyRare™ 502 response from CloudFront
happens occasionally when they can't reach the mojang upstream server
This commit is contained in:
parent
6c132f5c51
commit
23948afae5
@ -70,6 +70,7 @@ exp.get_from_options = function(rid, url, options, callback) {
|
|||||||
break;
|
break;
|
||||||
case 429: // this shouldn't usually happen, but occasionally does
|
case 429: // this shouldn't usually happen, but occasionally does
|
||||||
case 500:
|
case 500:
|
||||||
|
case 502: // CloudFront can't reach mojang origin
|
||||||
case 503:
|
case 503:
|
||||||
case 504:
|
case 504:
|
||||||
// we don't want to cache this
|
// we don't want to cache this
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user