mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
Merge pull request #289 from curquiza/status204-delete-index
Change the HTTP status code on index deletion
This commit is contained in:
commit
c734af55c0
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue