504 gateway timeout
A 504 Gateway Timeout is an HTTP status returned when a server does not receive a timely response from a dependency needed to complete a request. The API prefers returning a fast 504 when its dependency time budget expires rather than leaving the request hanging indefinitely.
Minimal example
if errors.Is(err, context.DeadlineExceeded) {
http.Error(w, "gateway_timeout", http.StatusGatewayTimeout)
}