[web] handle 502 from clsi-lb like 503 (#32357)

GitOrigin-RevId: 3e2ec7f85e57e749131507d1fd823cf4b25ad4ae
This commit is contained in:
Jakob Ackermann
2026-03-23 09:06:27 +00:00
committed by Copybot
parent 7f7ada1b1a
commit 52c73e9247
@@ -681,7 +681,7 @@ async function _postToClsi(
return { response: { compile: { status: 'conflict' } } }
} else if (err.response.status === 423) {
return { response: { compile: { status: 'compile-in-progress' } } }
} else if (err.response.status === 503) {
} else if (err.response.status === 502 || err.response.status === 503) {
enableCompileFromCacheUntil =
Date.now() + ENABLE_COMPILE_FROM_CACHE_ON_503_MS
return { response: { compile: { status: 'unavailable' } } }