From 810b328ad2d3232a9410566c5f83f1f60924aa85 Mon Sep 17 00:00:00 2001 From: Clementine Urquizar Date: Wed, 13 Nov 2019 14:24:32 +0100 Subject: [PATCH] Change the HTTP status code on index deletion --- meilidb-http/src/routes/index.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilidb-http/src/routes/index.rs b/meilidb-http/src/routes/index.rs index a6367046d..8df1ced6f 100644 --- a/meilidb-http/src/routes/index.rs +++ b/meilidb-http/src/routes/index.rs @@ -187,7 +187,7 @@ pub async fn delete_index(ctx: Context) -> SResult { .map_err(ResponseError::internal)?; if found { - Ok(StatusCode::OK) + Ok(StatusCode::NO_CONTENT) } else { Ok(StatusCode::NOT_FOUND) }