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.