mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-25 13:06:27 +00:00
Use 200 status code for healthcheck endpoint
This commit is contained in:
@@ -9,5 +9,5 @@ pub fn services(cfg: &mut web::ServiceConfig) {
|
||||
|
||||
#[get("/health")]
|
||||
async fn get_health() -> Result<HttpResponse, ResponseError> {
|
||||
Ok(HttpResponse::NoContent().finish())
|
||||
Ok(HttpResponse::Ok().finish())
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@ async fn test_healthyness() {
|
||||
// Check that the server is healthy
|
||||
|
||||
let (_response, status_code) = server.get_health().await;
|
||||
assert_eq!(status_code, 204);
|
||||
assert_eq!(status_code, 200);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user