From 217abdca18ff15190c0407b2b8b1ea204edcfb99 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Tue, 8 Nov 2022 15:38:53 +0100 Subject: [PATCH] Fix HTTP return code --- src/api/admin/cluster.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/admin/cluster.rs b/src/api/admin/cluster.rs index 7b91f709..4386c0cc 100644 --- a/src/api/admin/cluster.rs +++ b/src/api/admin/cluster.rs @@ -167,7 +167,7 @@ pub async fn handle_apply_cluster_layout( garage.system.update_cluster_layout(&layout).await?; Ok(Response::builder() - .status(StatusCode::NO_CONTENT) + .status(StatusCode::OK) .header(http::header::CONTENT_TYPE, "text/plain") .body(Body::from(msg.join("\n")))?) }