Change the HTTP status code on index deletion

This commit is contained in:
Clementine Urquizar 2019-11-13 14:24:32 +01:00
parent 0a8039d8d8
commit 810b328ad2

View File

@ -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)
}