diff --git a/meilisearch-http/src/routes/health.rs b/meilisearch-http/src/routes/health.rs index 15ca2a5f5..053790d61 100644 --- a/meilisearch-http/src/routes/health.rs +++ b/meilisearch-http/src/routes/health.rs @@ -9,6 +9,6 @@ pub fn services(cfg: &mut web::ServiceConfig) { #[get("/health")] async fn get_health() -> Result { - let payload = serde_json::json!({ "status": "ok" }); + let payload = serde_json::json!({ "status": "available" }); Ok(HttpResponse::Ok().body(payload.to_string())) } diff --git a/meilisearch-http/tests/health.rs b/meilisearch-http/tests/health.rs index b14921f4f..2be66887f 100644 --- a/meilisearch-http/tests/health.rs +++ b/meilisearch-http/tests/health.rs @@ -8,5 +8,5 @@ async fn test_healthyness() { let (response, status_code) = server.get_health().await; assert_eq!(status_code, 200); - assert_eq!(response["status"], "ok"); + assert_eq!(response["status"], "available"); }