add HeadBucket

This commit is contained in:
Chris Lu
2018-07-19 01:43:27 -07:00
parent d429b6296b
commit feea33d5e0
3 changed files with 36 additions and 2 deletions

View File

@@ -32,6 +32,7 @@ const (
ErrBucketAlreadyExists
ErrBucketAlreadyOwnedByYou
ErrInvalidBucketName
ErrNoSuchBucket
ErrInternalError
)
@@ -63,6 +64,11 @@ var errorCodeResponse = map[ErrorCode]APIError{
Description: "The specified bucket is not valid.",
HTTPStatusCode: http.StatusBadRequest,
},
ErrNoSuchBucket: {
Code: "NoSuchBucket",
Description: "The specified bucket does not exist",
HTTPStatusCode: http.StatusNotFound,
},
ErrInternalError: {
Code: "InternalError",
Description: "We encountered an internal error, please try again.",