Commit 134d83a8 by Johannes Stelzer

Recognize status 500 and java.net.ConnectException from zuul as offline

parent bef593ce
......@@ -35,7 +35,7 @@ module.exports = function ($scope, $location, $interval, $q, Application) {
.error(function (response, httpStatus) {
if (httpStatus === 503) {
app.status = response.status;
} else if (httpStatus === 404 || httpStatus === 0) {
} else if (httpStatus === 404 || httpStatus === 0 || (httpStatus === 500 && response.exception === 'java.net.ConnectException')) {
app.status = 'OFFLINE';
} else {
app.status = 'UNKNOWN';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment