Enhance error handling and HTTP codes in DCM 41/113141/7
authorIgor D.C <igor.duarte.cardoso@intel.com>
Fri, 25 Sep 2020 00:04:58 +0000 (00:04 +0000)
committerIgor D.C <igor.duarte.cardoso@intel.com>
Fri, 25 Sep 2020 05:28:52 +0000 (05:28 +0000)
commitc585d2b091875dbc9575a960f4f42c1f14ec3366
treeaba0039b6477dfbc2790cd5efc365a6d9ccb4390
parentab8142dfc0f54bfc140e240fe558ac5be8d60ea5
Enhance error handling and HTTP codes in DCM

This improves error handling between DCM and the database resources and
adds/corrects a lot more HTTP return codes in the API, respectively.

Issue-ID: MULTICLOUD-1143
Change-Id: I3abc8025660e042f4c946f8bbfd280e1eb4c9583
Signed-off-by: Igor D.C <igor.duarte.cardoso@intel.com>
src/dcm/api/clusterHandler.go
src/dcm/api/keyValueHandler.go
src/dcm/api/logicalCloudHandler.go
src/dcm/api/quotaHandler.go
src/dcm/api/userPermissionsHandler.go
src/dcm/pkg/module/cluster.go
src/dcm/pkg/module/keyvalue.go
src/dcm/pkg/module/logicalcloud.go
src/dcm/pkg/module/quota.go
src/dcm/pkg/module/userpermissions.go