|
|
@ -1526,6 +1526,8 @@ func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) { |
|
|
|
apiErr = ErrEntityTooLarge |
|
|
|
apiErr = ErrEntityTooLarge |
|
|
|
case errDataTooSmall: |
|
|
|
case errDataTooSmall: |
|
|
|
apiErr = ErrEntityTooSmall |
|
|
|
apiErr = ErrEntityTooSmall |
|
|
|
|
|
|
|
case errAuthentication: |
|
|
|
|
|
|
|
apiErr = ErrAccessDenied |
|
|
|
case auth.ErrInvalidAccessKeyLength: |
|
|
|
case auth.ErrInvalidAccessKeyLength: |
|
|
|
apiErr = ErrAdminInvalidAccessKey |
|
|
|
apiErr = ErrAdminInvalidAccessKey |
|
|
|
case auth.ErrInvalidSecretKeyLength: |
|
|
|
case auth.ErrInvalidSecretKeyLength: |
|
|
|