forked from TrueCloudLab/frostfs-s3-gw
[#534] Return error if bucket has no tag set
Signed-off-by: Marina Biryukova <m.biryukova@yadro.com>
This commit is contained in:
parent
01d95d8cf4
commit
c9c7379835
3 changed files with 74 additions and 1 deletions
|
@ -193,6 +193,7 @@ const (
|
|||
ErrInvalidRangeLength
|
||||
ErrRangeOutOfBounds
|
||||
ErrMissingContentRange
|
||||
ErrNoSuchTagSet
|
||||
|
||||
ErrMalformedJSON
|
||||
ErrInsecureClientRequest
|
||||
|
@ -1774,6 +1775,12 @@ var errorCodes = errorCodeMap{
|
|||
Description: "You have reached the quota limit.",
|
||||
HTTPStatusCode: http.StatusConflict,
|
||||
},
|
||||
ErrNoSuchTagSet: {
|
||||
ErrCode: ErrNoSuchTagSet,
|
||||
Code: "NoSuchTagSet",
|
||||
Description: "The TagSet does not exist",
|
||||
HTTPStatusCode: http.StatusNotFound,
|
||||
},
|
||||
// Add your error structure here.
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue