forked from TrueCloudLab/frostfs-sdk-go
[#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:
parent
3e94b7c892
commit
ff3826ae6b
3 changed files with 44 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue