mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
fix InvalidAccessKeyId error according to amazon documentation (#4404)
http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
This commit is contained in:
parent
9b3dd44607
commit
99ca8a2928
@ -230,7 +230,7 @@ var errorCodeResponse = map[APIErrorCode]APIError{
|
|||||||
HTTPStatusCode: http.StatusInternalServerError,
|
HTTPStatusCode: http.StatusInternalServerError,
|
||||||
},
|
},
|
||||||
ErrInvalidAccessKeyID: {
|
ErrInvalidAccessKeyID: {
|
||||||
Code: "InvalidAccessKeyID",
|
Code: "InvalidAccessKeyId",
|
||||||
Description: "The access key ID you provided does not exist in our records.",
|
Description: "The access key ID you provided does not exist in our records.",
|
||||||
HTTPStatusCode: http.StatusForbidden,
|
HTTPStatusCode: http.StatusForbidden,
|
||||||
},
|
},
|
||||||
|
@ -68,7 +68,7 @@ func testGetBucketLocationHandler(obj ObjectLayer, instanceType, bucketName stri
|
|||||||
locationResponse: []byte(""),
|
locationResponse: []byte(""),
|
||||||
errorResponse: APIErrorResponse{
|
errorResponse: APIErrorResponse{
|
||||||
Resource: "/" + bucketName + "/",
|
Resource: "/" + bucketName + "/",
|
||||||
Code: "InvalidAccessKeyID",
|
Code: "InvalidAccessKeyId",
|
||||||
Message: "The access key ID you provided does not exist in our records.",
|
Message: "The access key ID you provided does not exist in our records.",
|
||||||
},
|
},
|
||||||
shouldPass: false,
|
shouldPass: false,
|
||||||
|
Loading…
Reference in New Issue
Block a user