From 42df714817c6f3a4d1ee7bdb650528b3f33acd79 Mon Sep 17 00:00:00 2001 From: franciscovila Date: Mon, 9 May 2022 17:31:27 +0100 Subject: VLM duplicate name gives generic error Provide user with specific error message when name is alrady in use Issue-ID: SDC-3991 Signed-off-by: franciscovila Change-Id: I7d2c839d2ed14d17257adacfe2de6978ac0e61a4 --- .../src/main/resources/errorCodesToResponseStatusMapping.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src') diff --git a/openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/resources/errorCodesToResponseStatusMapping.json b/openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/resources/errorCodesToResponseStatusMapping.json index 37e692dac8..797609c8de 100644 --- a/openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/resources/errorCodesToResponseStatusMapping.json +++ b/openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/resources/errorCodesToResponseStatusMapping.json @@ -25,5 +25,6 @@ "VERSIONABLE_SUB_ENTITY_NOT_FOUND": "NOT_FOUND", "FEATURE_GROUP_NOT_EXIST_FOR_VSP": "NOT_FOUND", "INVALID_COMPUTE_FLAVOR_ID": "NOT_FOUND", - "INVALID_COMPONENT_ID": "NOT_FOUND" + "INVALID_COMPONENT_ID": "NOT_FOUND", + "UNIQUE_VALUE_VIOLATION": "BAD_REQUEST" } \ No newline at end of file -- cgit 1.2.3-korg