diff options
-rw-r--r-- | remoting/webapp/client_screen.js | 2 | ||||
-rw-r--r-- | remoting/webapp/host_list.js | 2 | ||||
-rw-r--r-- | remoting/webapp/oauth2.js | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/remoting/webapp/client_screen.js b/remoting/webapp/client_screen.js index 37f507d..f534e72 100644 --- a/remoting/webapp/client_screen.js +++ b/remoting/webapp/client_screen.js @@ -416,7 +416,7 @@ function parseServerResponse_(xhr) { errorMsg = remoting.Error.INVALID_ACCESS_CODE; } else if (xhr.status == 0) { errorMsg = remoting.Error.NO_RESPONSE; - } else if (xhr.status == 503) { + } else if (xhr.status == 502 || xhr.status == 503) { errorMsg = remoting.Error.SERVICE_UNAVAILABLE; } else { console.error('The server responded: ' + xhr.responseText); diff --git a/remoting/webapp/host_list.js b/remoting/webapp/host_list.js index 1dd6c46..a596f81 100644 --- a/remoting/webapp/host_list.js +++ b/remoting/webapp/host_list.js @@ -168,7 +168,7 @@ remoting.HostList.prototype.parseHostListResponse_ = function(onDone, xhr) { this.lastError_ = remoting.Error.NO_RESPONSE; } else if (xhr.status == 401) { this.lastError_ = remoting.Error.AUTHENTICATION_FAILED; - } else if (xhr.status == 503) { + } else if (xhr.status == 502 || xhr.status == 503) { this.lastError_ = remoting.Error.SERVICE_UNAVAILABLE; } else { this.lastError_ = remoting.Error.UNEXPECTED; diff --git a/remoting/webapp/oauth2.js b/remoting/webapp/oauth2.js index 3850ada..9956f5a 100644 --- a/remoting/webapp/oauth2.js +++ b/remoting/webapp/oauth2.js @@ -313,7 +313,7 @@ remoting.OAuth2.prototype.interpretUnexpectedXhrStatus_ = function(xhrStatus) { // recover from an unexpected failure by signing in again. /** @type {remoting.Error} */ var error = remoting.Error.AUTHENTICATION_FAILED; - if (xhrStatus == 503) { + if (xhrStatus == 502 || xhrStatus == 503) { error = remoting.Error.SERVICE_UNAVAILABLE; } else if (xhrStatus == 0) { error = remoting.Error.NETWORK_FAILURE; |