@ -663,20 +663,9 @@ var errorCodes = errorCodeMap{
Description:"X-Amz-Date must be in the ISO8601 Long Format \"yyyyMMdd'T'HHmmss'Z'\"",
Description:"X-Amz-Date must be in the ISO8601 Long Format \"yyyyMMdd'T'HHmmss'Z'\"",
HTTPStatusCode:http.StatusBadRequest,
HTTPStatusCode:http.StatusBadRequest,
},
},
// FIXME: Should contain the invalid param set as seen in https://github.com/minio/minio/issues/2385.
// right Description: "Error parsing the X-Amz-Credential parameter; incorrect date format \"%s\". This date in the credential must be in the format \"yyyyMMdd\".",
// Need changes to make sure variable messages can be constructed.
ErrMalformedCredentialDate:{
ErrMalformedCredentialDate:{
Code:"AuthorizationQueryParametersError",
Code:"AuthorizationQueryParametersError",
Description:"Error parsing the X-Amz-Credential parameter; incorrect date format \"%s\". This date in the credential must be in the format \"yyyyMMdd\".",
Description:"Error parsing the X-Amz-Credential parameter; incorrect date format. This date in the credential must be in the format \"yyyyMMdd\".",
HTTPStatusCode:http.StatusBadRequest,
},
// FIXME: Should contain the invalid param set as seen in https://github.com/minio/minio/issues/2385.
// right Description: "Error parsing the X-Amz-Credential parameter; the region 'us-east-' is wrong; expecting 'us-east-1'".
// Need changes to make sure variable messages can be constructed.
ErrMalformedCredentialRegion:{
Code:"AuthorizationQueryParametersError",
Description:"Error parsing the X-Amz-Credential parameter; the region is wrong;",
HTTPStatusCode:http.StatusBadRequest,
HTTPStatusCode:http.StatusBadRequest,
},
},
ErrInvalidRegion:{
ErrInvalidRegion:{
@ -684,9 +673,6 @@ var errorCodes = errorCodeMap{
Description:"Region does not match.",
Description:"Region does not match.",
HTTPStatusCode:http.StatusBadRequest,
HTTPStatusCode:http.StatusBadRequest,
},
},
// FIXME: Should contain the invalid param set as seen in https://github.com/minio/minio/issues/2385.
// right Description: "Error parsing the X-Amz-Credential parameter; incorrect service \"s4\". This endpoint belongs to \"s3\".".
// Need changes to make sure variable messages can be constructed.
ErrInvalidServiceS3:{
ErrInvalidServiceS3:{
Code:"AuthorizationParametersError",
Code:"AuthorizationParametersError",
Description:"Error parsing the Credential/X-Amz-Credential parameter; incorrect service. This endpoint belongs to \"s3\".",
Description:"Error parsing the Credential/X-Amz-Credential parameter; incorrect service. This endpoint belongs to \"s3\".",
@ -697,9 +683,6 @@ var errorCodes = errorCodeMap{
Description:"Error parsing the Credential parameter; incorrect service. This endpoint belongs to \"sts\".",
Description:"Error parsing the Credential parameter; incorrect service. This endpoint belongs to \"sts\".",
HTTPStatusCode:http.StatusBadRequest,
HTTPStatusCode:http.StatusBadRequest,
},
},
// FIXME: Should contain the invalid param set as seen in https://github.com/minio/minio/issues/2385.
// Description: "Error parsing the X-Amz-Credential parameter; incorrect terminal "aws4_reque". This endpoint uses "aws4_request".
// Need changes to make sure variable messages can be constructed.
ErrInvalidRequestVersion:{
ErrInvalidRequestVersion:{
Code:"AuthorizationQueryParametersError",
Code:"AuthorizationQueryParametersError",
Description:"Error parsing the X-Amz-Credential parameter; incorrect terminal. This endpoint uses \"aws4_request\".",
Description:"Error parsing the X-Amz-Credential parameter; incorrect terminal. This endpoint uses \"aws4_request\".",
@ -770,8 +753,6 @@ var errorCodes = errorCodeMap{
Description:"Your key is too long",
Description:"Your key is too long",
HTTPStatusCode:http.StatusBadRequest,
HTTPStatusCode:http.StatusBadRequest,
},
},
// FIXME: Actual XML error response also contains the header which missed in list of signed header parameters.
ErrUnsignedHeaders:{
ErrUnsignedHeaders:{
Code:"AccessDenied",
Code:"AccessDenied",
Description:"There were headers present in the request which were not signed",
Description:"There were headers present in the request which were not signed",