fixes #13958
Showing the changes to cmd/api-errors.go (1 of 3 files). Show all
Unified · Split
| @@ -82,6 +82,7 @@ const ( · 81 unmodified lines | ||
| 82 | 82 | ErrIncompleteBody |
| 83 | 83 | ErrInternalError |
| 84 | 84 | ErrInvalidAccessKeyID |
| 85 | + ErrAccessKeyDisabled | |
| 85 | 86 | ErrInvalidBucketName |
| 86 | 87 | ErrInvalidDigest |
| 87 | 88 | ErrInvalidRange |
| @@ -514,6 +515,11 @@ var errorCodes = errorCodeMap{ · 426 unmodified lines | ||
| 514 | 515 | Description: "The Access Key Id you provided does not exist in our records.", |
| 515 | 516 | HTTPStatusCode: http.StatusForbidden, |
| 516 | 517 | }, |
| 518 | + ErrAccessKeyDisabled: { | |
| 519 | + Code: "InvalidAccessKeyId", | |
| 520 | + Description: "Your account is disabled; please contact your administrator.", | |
| 521 | + HTTPStatusCode: http.StatusForbidden, | |
| 522 | + }, | |
| 517 | 523 | ErrInvalidBucketName: { |
| 518 | 524 | Code: "InvalidBucketName", |
| 519 | 525 | Description: "The specified bucket is not valid.", |
| @@ -681,7 +687,7 @@ var errorCodes = errorCodeMap{ · 161 unmodified lines | ||
| 681 | 687 | }, |
| 682 | 688 | ErrAllAccessDisabled: { |
| 683 | 689 | Code: "AllAccessDisabled", |
| 684 | − Description: "All access to this bucket has been disabled.", | |
| 690 | + Description: "All access to this resource has been disabled.", | |
| 685 | 691 | HTTPStatusCode: http.StatusForbidden, |
| 686 | 692 | }, |
| 687 | 693 | ErrMalformedPolicy: { |