diff --git a/src/v/pandaproxy/error.cc b/src/v/pandaproxy/error.cc index 33a4c074b7092..aa119d91513e8 100644 --- a/src/v/pandaproxy/error.cc +++ b/src/v/pandaproxy/error.cc @@ -129,6 +129,8 @@ struct reply_error_category final : std::error_category { return "subject_version_not_deleted"; case reply_error_code::compatibility_not_found: return "compatibility_not_found"; + case reply_error_code::mode_not_found: + return "mode_not_found"; case reply_error_code::serialization_error: return "serialization_error"; case reply_error_code::consumer_already_exists: @@ -140,6 +142,8 @@ struct reply_error_category final : std::error_category { return "Invalid schema version"; case reply_error_code::compatibility_level_invalid: return "Invalid compatibility level"; + case reply_error_code::mode_invalid: + return "Invalid mode"; case reply_error_code::subject_version_operaton_not_permitted: return "Overwrite new schema is not permitted."; case reply_error_code::subject_version_has_references: diff --git a/src/v/pandaproxy/error.h b/src/v/pandaproxy/error.h index 0caba1ef0eaac..1216eae492c43 100644 --- a/src/v/pandaproxy/error.h +++ b/src/v/pandaproxy/error.h @@ -78,11 +78,13 @@ enum class reply_error_code : uint16_t { subject_version_soft_deleted = 40406, subject_version_not_deleted = 40407, compatibility_not_found = 40408, + mode_not_found = 40409, serialization_error = 40801, consumer_already_exists = 40902, schema_empty = 42201, schema_version_invalid = 42202, compatibility_level_invalid = 42203, + mode_invalid = 42204, subject_version_operaton_not_permitted = 42205, subject_version_has_references = 42206, subject_version_schema_id_already_exists = 42207,