X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fesr-server.git;a=blobdiff_plain;f=esr-mgr%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faai%2Fesr%2Fwrapper%2FThirdpatySdncWrapper.java;h=9e6f3f8061d60c811e92d071413866901fabf2ce;hp=0dfd45a7fc42a3f15650b0939ffdf6fe4f972cfa;hb=979f0fa70cbe576f8eed5e56db467b261a1919cf;hpb=22a43294c389a413b7d8d372a6d267ea054b4e22 diff --git a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java index 0dfd45a..9e6f3f8 100644 --- a/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java +++ b/esr-mgr/src/main/java/org/onap/aai/esr/wrapper/ThirdpatySdncWrapper.java @@ -105,7 +105,7 @@ public class ThirdpatySdncWrapper { } catch (Exception e) { e.printStackTrace(); LOG.error("Query thirdparty SDNC list failed !"); - return Response.serverError().build(); + return Response.ok().build(); } } @@ -126,7 +126,7 @@ public class ThirdpatySdncWrapper { if (resourceVersion != null) { try { ExternalSystemProxy.deleteThirdpartySdnc(thirdpartySdncId, resourceVersion); - return Response.ok().build(); + return Response.noContent().build(); } catch (Exception e) { e.printStackTrace(); LOG.error("Delete VNFM from A&AI failed! thirdparty SDNC ID: " + thirdpartySdncId + "resouce-version:" @@ -135,7 +135,7 @@ public class ThirdpatySdncWrapper { } } else { LOG.error("resouce-version is null ! Can not delete resouce from A&AI. "); - return Response.serverError().build(); + return Response.noContent().build(); } }