diff --git a/src/health.ts b/src/health.ts index e8db65c..036ea1e 100644 --- a/src/health.ts +++ b/src/health.ts @@ -26,6 +26,9 @@ export async function checkHealth(service: Service): Promise { if (res.status >= 400 && res.status < 500) { return { status: "misconfigured", latency_ms }; } + if (res.status === 502 || res.status === 504) { + return { status: "down", latency_ms }; + } if (res.status >= 500) { return { status: "degraded", latency_ms }; }