[#140] apistatus: Support OBJECT_NOT_FOUND error

Define `ObjectNotFound` type for `OBJECT_NOT_FOUND` code.

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

View file

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