mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-12-23 21:20:24 +01:00
Use 200 status code for healthcheck endpoint
This commit is contained in:
parent
5ca3382f5c
commit
a2ac2de011
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user