TOKEN_REFRESH_REQUIRED("TokenRefreshRequired", "The provided token must be refreshed"),
TOO_MANY_BUCKETS("TooManyBuckets", "Bucket creation is not allowed due to maximum limit reached"),
UNEXPECTED_CONTENT("UnexpectedContent", "Request does not support content"),
UNRESOLVABLE_GRANT_BY_EMAIL_ADDRESS("UnresolvableGrantByEmailAddress", "The email address provided does not match"),
USER_KEY_MUST_BE_SPECIFIED("UserKeyMustBeSpecified",
<BUG>"The bucket POST must contain the specified field name or check the order of the fields");

private final String code;</BUG>
private final String message;
private ErrorCode(String code, String message) {

TOKEN_REFRESH_REQUIRED("TokenRefreshRequired", "The provided token must be refreshed"),
TOO_MANY_BUCKETS("TooManyBuckets", "Bucket creation is not allowed due to maximum limit reached"),
UNEXPECTED_CONTENT("UnexpectedContent", "Request does not support content"),
UNRESOLVABLE_GRANT_BY_EMAIL_ADDRESS("UnresolvableGrantByEmailAddress", "The email address provided does not match"),
USER_KEY_MUST_BE_SPECIFIED("UserKeyMustBeSpecified",
"The bucket POST must contain the specified field name or check the order of the fields"),
X_AMZ_CONTENT_SHA256_MISMATCH("XAmzContentSHA256Mismatch",
"content SHA256 mismatch");
private final String code;
private final String message;
private ErrorCode(String code, String message) {
