mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-26 00:01:00 +00:00
Change the HTTP status code on index deletion
This commit is contained in:
@ -187,7 +187,7 @@ pub async fn delete_index(ctx: Context<Data>) -> SResult<StatusCode> {
|
||||
.map_err(ResponseError::internal)?;
|
||||
|
||||
if found {
|
||||
Ok(StatusCode::OK)
|
||||
Ok(StatusCode::NO_CONTENT)
|
||||
} else {
|
||||
Ok(StatusCode::NOT_FOUND)
|
||||
}
|
||||
|
Reference in New Issue
Block a user