From a2d4f58a96704c5cfacef3f61822aaa8542ef67f Mon Sep 17 00:00:00 2001 From: Chang Su Date: Fri, 2 Jan 2026 16:01:44 -0800 Subject: [PATCH] fix(http): use 504 Gateway Timeout for upstream timeouts (#16320) --- sgl-model-gateway/src/routers/http/router.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgl-model-gateway/src/routers/http/router.rs b/sgl-model-gateway/src/routers/http/router.rs index e530da882..2d78a05e0 100644 --- a/sgl-model-gateway/src/routers/http/router.rs +++ b/sgl-model-gateway/src/routers/http/router.rs @@ -685,7 +685,7 @@ fn convert_reqwest_error(e: reqwest::Error) -> Response { "call_upstream_decode_error", ) } else if e.is_timeout() { - (StatusCode::INTERNAL_SERVER_ERROR, "call_upstream_timeout") + (StatusCode::GATEWAY_TIMEOUT, "call_upstream_timeout") } else if e.is_connect() { ( StatusCode::INTERNAL_SERVER_ERROR,