From beebab62328150e58fefa6b2e4e366e5c0cff023 Mon Sep 17 00:00:00 2001 From: Thaddee Tyl Date: Sun, 8 Nov 2015 20:01:11 +0100 Subject: [PATCH] Send 504 Gateway Timeout for vendor unreachable As discussed in #445 --- server.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server.js b/server.js index 8e3af1c614f9f..d9ff487f63f83 100644 --- a/server.js +++ b/server.js @@ -212,6 +212,7 @@ function cache(f) { } var badgeData = getBadgeData('vendor', data); badgeData.text[1] = 'unresponsive'; + ask.res.statusCode = 504; // Gateway Timeout var extension; try { extension = match[0].split('.').pop();