From ba91fad2d702d7e9c31b9e3f43961fce6f747047 Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Fri, 26 Feb 2021 14:49:27 +0100 Subject: [PATCH] change error to bad request for update external IC --- routes/infrastructure-component/ic_endpoints.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/infrastructure-component/ic_endpoints.go b/routes/infrastructure-component/ic_endpoints.go index 89e94c0..7f13ff7 100644 --- a/routes/infrastructure-component/ic_endpoints.go +++ b/routes/infrastructure-component/ic_endpoints.go @@ -150,7 +150,7 @@ func updateIC(c *gin.Context) { } if oldIC.ManagedExternally { - helper.ForbiddenError(c, "Cannot update externally managed component via API") + helper.BadRequestError(c, "Cannot update externally managed component via API") return }