fix(http): use 504 Gateway Timeout for upstream timeouts (#16320)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user