From 0a9306433c69f49bd7ec457868f5cbd9eec2f2e2 Mon Sep 17 00:00:00 2001 From: Brandon Berhent Date: Thu, 1 Sep 2022 16:47:33 -0400 Subject: [PATCH] Return 200 on unsupported actions to maintain compatibility --- controller/http_api_c.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/http_api_c.go b/controller/http_api_c.go index 3fdb87d..798f3fe 100644 --- a/controller/http_api_c.go +++ b/controller/http_api_c.go @@ -84,7 +84,7 @@ func (hc *HttpController) HandleAction(c *fiber.Ctx) error { if !slices.Contains(supportedActions, action) { klog.Errorf("Action %s is not supported", action) - return c.Status(fiber.StatusBadRequest).JSON(models.UNSUPPORTED_ACTION_ERR) + return c.Status(fiber.StatusOK).JSON(models.UNSUPPORTED_ACTION_ERR) } // Trim count if it exists in action, so nobody can overload the node