From 869fb641555b001bf16164cebb4adb1346461eda Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Fri, 18 Mar 2022 17:49:45 +0300 Subject: [PATCH] [#208] status: Add `OUT_OF_RANGE` status in Object section Signed-off-by: Evgenii Stratonikov --- object/service.proto | 4 ++++ status/types.proto | 3 +++ 2 files changed, 7 insertions(+) diff --git a/object/service.proto b/object/service.proto index 58fbf03..22d7948 100644 --- a/object/service.proto +++ b/object/service.proto @@ -184,6 +184,8 @@ service ObjectService { // provided session token has expired; // - **OBJECT_ALREADY_REMOVED** (2052, SECTION_OBJECT): \ // the requested object has been marked as deleted. + // - **OUT_OF_RANGE** (2053, SECTION_OBJECT): \ + // the requested range is out of bounds. rpc GetRange(GetRangeRequest) returns (stream GetRangeResponse); // Returns homomorphic or regular hash of object's payload range after @@ -211,6 +213,8 @@ service ObjectService { // access to operation RANGEHASH of the object is denied; // - **OBJECT_NOT_FOUND** (2049, SECTION_OBJECT): \ // object not found in container; + // - **OUT_OF_RANGE** (2053, SECTION_OBJECT): \ + // the requested range is out of bounds. // - **TOKEN_EXPIRED** (4097, SECTION_SESSION): \ // provided session token has expired. rpc GetRangeHash(GetRangeHashRequest) returns (GetRangeHashResponse); diff --git a/status/types.proto b/status/types.proto index bf57c4a..a44cf6a 100644 --- a/status/types.proto +++ b/status/types.proto @@ -115,6 +115,9 @@ enum Object { // [**2052**] Object has been marked deleted. OBJECT_ALREADY_REMOVED = 4; + + // [**2053**] Invalid range has been requested for an object. + OUT_OF_RANGE = 5; } // Section of statuses for container-related operations.