forked from TrueCloudLab/frostfs-api-go
[#407] object: Add `OUT_OF_RANGE` status
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>support/v2.15
parent
1cd3a43d5b
commit
417fd3a08b
|
@ -37,6 +37,9 @@ const (
|
||||||
// StatusAlreadyRemoved is a local status.Code value for
|
// StatusAlreadyRemoved is a local status.Code value for
|
||||||
// OBJECT_ALREADY_REMOVED object failure.
|
// OBJECT_ALREADY_REMOVED object failure.
|
||||||
StatusAlreadyRemoved
|
StatusAlreadyRemoved
|
||||||
|
// StatusOutOfRange is a local status.Code value for
|
||||||
|
// OUT_OF_RANGE object failure.
|
||||||
|
StatusOutOfRange
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -16,6 +16,7 @@ func TestStatusCodes(t *testing.T) {
|
||||||
object.StatusLocked, 2050,
|
object.StatusLocked, 2050,
|
||||||
object.StatusLockNonRegularObject, 2051,
|
object.StatusLockNonRegularObject, 2051,
|
||||||
object.StatusAlreadyRemoved, 2052,
|
object.StatusAlreadyRemoved, 2052,
|
||||||
|
object.StatusOutOfRange, 2053,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue