diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2022-02-03 10:17:18 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-02-03 10:17:18 -0800 |
| commit | a7982bd525ce5f9a7810eb11b92c0451a5d6a7f9 (patch) | |
| tree | 38d059dc7ad6b540b8625e0be9e9d9807b25a2de /weed/s3api/s3err/s3api_errors.go | |
| parent | 6bee1e9714dace680b19d5a3e8481915e3755ff5 (diff) | |
| parent | b54a65ba5afcec13743442357a8544ec8cf876f5 (diff) | |
| download | seaweedfs-a7982bd525ce5f9a7810eb11b92c0451a5d6a7f9.tar.xz seaweedfs-a7982bd525ce5f9a7810eb11b92c0451a5d6a7f9.zip | |
Merge pull request #2631 from zerospiel/bucket_handlers
Diffstat (limited to 'weed/s3api/s3err/s3api_errors.go')
| -rw-r--r-- | weed/s3api/s3err/s3api_errors.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/weed/s3api/s3err/s3api_errors.go b/weed/s3api/s3err/s3api_errors.go index 3063df844..8d02f15b1 100644 --- a/weed/s3api/s3err/s3api_errors.go +++ b/weed/s3api/s3err/s3api_errors.go @@ -51,6 +51,8 @@ const ( ErrBucketAlreadyExists ErrBucketAlreadyOwnedByYou ErrNoSuchBucket + ErrNoSuchBucketPolicy + ErrNoSuchCORSConfiguration ErrNoSuchLifecycleConfiguration ErrNoSuchKey ErrNoSuchUpload @@ -164,6 +166,16 @@ var errorCodeResponse = map[ErrorCode]APIError{ Description: "The specified bucket does not exist", HTTPStatusCode: http.StatusNotFound, }, + ErrNoSuchBucketPolicy: { + Code: "NoSuchBucketPolicy", + Description: "The bucket policy does not exist", + HTTPStatusCode: http.StatusNotFound, + }, + ErrNoSuchCORSConfiguration: { + Code: "NoSuchCORSConfiguration", + Description: "The CORS configuration does not exist", + HTTPStatusCode: http.StatusNotFound, + }, ErrNoSuchLifecycleConfiguration: { Code: "NoSuchLifecycleConfiguration", Description: "The lifecycle configuration does not exist", |
