mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-24 15:00:43 +02:00
add s3api error for copy in file, not directory
This commit is contained in:
1 parent
6cf2e7d493
commit
6bdc274d4d
2 files changed
+12
-2
No files matched your search
@@ -101,6 +101,7 @@ const (
|
||||
ErrPreconditionFailed
|
||||
|
||||
ErrExistingObjectIsDirectory
|
||||
ErrExistingObjectIsFile
|
||||
)
|
||||
|
||||
// error code to APIError structure, these fields carry respective
|
||||
@@ -383,6 +384,11 @@ var errorCodeResponse = map[ErrorCode]APIError{
|
||||
Description: "Existing Object is a directory.",
|
||||
HTTPStatusCode: http.StatusConflict,
|
||||
},
|
||||
ErrExistingObjectIsFile: {
|
||||
Code: "ExistingObjectIsFile",
|
||||
Description: "Existing Object is a file.",
|
||||
HTTPStatusCode: http.StatusConflict,
|
||||
},
|
||||
}
|
||||
|
||||
// GetAPIError provides API Error for input API error code.
|
||||
|
||||
Reference in new issue
Block a user