aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfranciscovila <javier.paradela.vila@est.tech>2022-05-09 17:31:27 +0100
committerFrancisco Javier Paradela Vila <javier.paradela.vila@est.tech>2022-05-09 16:33:55 +0000
commit42df714817c6f3a4d1ee7bdb650528b3f33acd79 (patch)
tree42be4061221e1332b1431dc47a364b5935681c8e
parent401f001b36be5508dd8c129430126e49e68d1b5b (diff)
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 <javier.paradela.vila@est.tech> Change-Id: I7d2c839d2ed14d17257adacfe2de6978ac0e61a4
-rw-r--r--openecomp-be/api/openecomp-sdc-rest-webapp/openecomp-sdc-common-rest/src/main/resources/errorCodesToResponseStatusMapping.json3
1 files changed, 2 insertions, 1 deletions
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