[#407] object: Add `OUT_OF_RANGE` status

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
support/v2.15
Pavel Karpy 2022-06-29 20:20:41 +03:00 committed by fyrchik
parent 1cd3a43d5b
commit 417fd3a08b
2 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,9 @@ const (
// StatusAlreadyRemoved is a local status.Code value for
// OBJECT_ALREADY_REMOVED object failure.
StatusAlreadyRemoved
// StatusOutOfRange is a local status.Code value for
// OUT_OF_RANGE object failure.
StatusOutOfRange
)
const (

View File

@ -16,6 +16,7 @@ func TestStatusCodes(t *testing.T) {
object.StatusLocked, 2050,
object.StatusLockNonRegularObject, 2051,
object.StatusAlreadyRemoved, 2052,
object.StatusOutOfRange, 2053,
)
}