[#140] apistatus: Support OBJECT_ALREADY_REMOVED error

Define `ObjectAlreadyRemoved` type for `OBJECT_ALREADY_REMOVED` code.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-02-28 11:49:34 +03:00 committed by LeL
parent ff3826ae6b
commit f1e46d35de
3 changed files with 44 additions and 0 deletions

View file

@ -64,6 +64,8 @@ func FromStatusV2(st *status.Status) Status {
decoder = new(ObjectAccessDenied)
case object.StatusNotFound:
decoder = new(ObjectNotFound)
case object.StatusAlreadyRemoved:
decoder = new(ObjectAlreadyRemoved)
}
}