diff --git a/storage_controller/src/http.rs b/storage_controller/src/http.rs index 4035a15316..f06e83d720 100644 --- a/storage_controller/src/http.rs +++ b/storage_controller/src/http.rs @@ -1733,9 +1733,9 @@ async fn maybe_forward(req: Request) -> ForwardOutcome { }; if *self_addr == leader_addr { - return ForwardOutcome::Forwarded(Err(ApiError::InternalServerError(anyhow::anyhow!( - "Leader is stepped down instance" - )))); + return ForwardOutcome::Forwarded(Err(ApiError::ResourceUnavailable( + "Leader is stepped down instance".into(), + ))); } }