Nginxにおいて、バックエンドサーバーが504 Gateway Timeoutを返した際、別のバックエンドへリトライ(再試行)させる設定はどれか。

proxy_next_upstreamにエラー条件(error, timeout等)を列挙する。