Fix that Service Unavailable error is not displayed

This commit is contained in:
sienori 2019-05-03 16:52:32 +09:00
parent 6104cd7f55
commit f63fa7fff9

View file

@ -54,6 +54,7 @@ const formatResult = result => {
if (result.status === 0) resultData.statusText = "Network Error"; if (result.status === 0) resultData.statusText = "Network Error";
else if (result.status === 200) resultData.statusText = "OK"; else if (result.status === 200) resultData.statusText = "OK";
else if (result.status === 429) resultData.statusText = "Service Unavailable";
else if (result.status === 503) resultData.statusText = "Service Unavailable"; else if (result.status === 503) resultData.statusText = "Service Unavailable";
else resultData.statusText = result.statusText || result.status; else resultData.statusText = result.statusText || result.status;