From f63fa7fff97b85625acc567f323d3610e78f04df Mon Sep 17 00:00:00 2001 From: sienori Date: Fri, 3 May 2019 16:52:32 +0900 Subject: [PATCH] Fix that Service Unavailable error is not displayed --- src/common/translate.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/translate.js b/src/common/translate.js index 65f18f0..a0ad712 100644 --- a/src/common/translate.js +++ b/src/common/translate.js @@ -54,6 +54,7 @@ const formatResult = result => { if (result.status === 0) resultData.statusText = "Network Error"; 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 resultData.statusText = result.statusText || result.status;