forked from TrueCloudLab/frostfs-rest-gw
[#15] Use status code 200 with payload on success
Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
parent
686588bc1a
commit
e28c6e5375
10 changed files with 249 additions and 47 deletions
|
@ -199,7 +199,7 @@ func (a *API) DeleteObject(params operations.DeleteObjectParams, principal *mode
|
|||
return errorResponse.WithPayload(util.NewError(err))
|
||||
}
|
||||
|
||||
return operations.NewDeleteObjectNoContent()
|
||||
return operations.NewDeleteObjectOK().WithPayload(util.NewSuccessResponse())
|
||||
}
|
||||
|
||||
// SearchObjects handler that removes object from NeoFS.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue