From 417fd3a08b51a48bb30c8d7fe929c62f9c193790 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Wed, 29 Jun 2022 20:20:41 +0300 Subject: [PATCH] [#407] object: Add `OUT_OF_RANGE` status Signed-off-by: Pavel Karpy --- object/status.go | 3 +++ object/status_test.go | 1 + 2 files changed, 4 insertions(+) diff --git a/object/status.go b/object/status.go index dc37ad25..a9a0faa5 100644 --- a/object/status.go +++ b/object/status.go @@ -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 ( diff --git a/object/status_test.go b/object/status_test.go index 86fcc823..a330a9ff 100644 --- a/object/status_test.go +++ b/object/status_test.go @@ -16,6 +16,7 @@ func TestStatusCodes(t *testing.T) { object.StatusLocked, 2050, object.StatusLockNonRegularObject, 2051, object.StatusAlreadyRemoved, 2052, + object.StatusOutOfRange, 2053, ) }