#define ERR_NOT_SLO_MANIFEST 2031
#define ERR_EMAIL_EXIST 2032
#define ERR_KEY_EXIST 2033
+#define ERR_INVALID_SECRET_KEY 2034
#define ERR_USER_SUSPENDED 2100
#define ERR_INTERNAL_ERROR 2200
#define ERR_NOT_IMPLEMENTED 2201
{ ERR_USER_EXIST, 409, "UserAlreadyExists" },
{ ERR_EMAIL_EXIST, 409, "EmailExists" },
{ ERR_KEY_EXIST, 409, "KeyExists"},
+ { ERR_INVALID_SECRET_KEY, 400, "InvalidSecretKey"},
{ ENOTEMPTY, 409, "BucketNotEmpty" },
{ ERR_PRECONDITION_FAILED, 412, "PreconditionFailed" },
{ ERANGE, 416, "InvalidRange" },
if (!gen_secret) {
if (op_state.get_secret_key().empty()) {
set_err_msg(err_msg, "empty secret key");
- return -EINVAL;
+ return -ERR_INVALID_SECRET_KEY;
}
key = op_state.get_secret_key();
if (key.empty()) {
set_err_msg(err_msg, "empty secret key");
- return -EINVAL;
+ return -ERR_INVALID_SECRET_KEY;
}
// update the access key with the new secret key