fix InvalidAccessKeyId error according to amazon documentation (#4404)

http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
This commit is contained in:
samkevich 2017-05-24 06:07:52 +03:00 committed by Harshavardhana
parent 9b3dd44607
commit 99ca8a2928
2 changed files with 2 additions and 2 deletions

View File

@ -230,7 +230,7 @@ var errorCodeResponse = map[APIErrorCode]APIError{
HTTPStatusCode: http.StatusInternalServerError,
},
ErrInvalidAccessKeyID: {
Code: "InvalidAccessKeyID",
Code: "InvalidAccessKeyId",
Description: "The access key ID you provided does not exist in our records.",
HTTPStatusCode: http.StatusForbidden,
},

View File

@ -68,7 +68,7 @@ func testGetBucketLocationHandler(obj ObjectLayer, instanceType, bucketName stri
locationResponse: []byte(""),
errorResponse: APIErrorResponse{
Resource: "/" + bucketName + "/",
Code: "InvalidAccessKeyID",
Code: "InvalidAccessKeyId",
Message: "The access key ID you provided does not exist in our records.",
},
shouldPass: false,