Skip to content

Commit

Permalink
Return 200 on unsupported actions to maintain compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bbedward committed Sep 1, 2022
1 parent 22d39f4 commit 0a93064
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/http_api_c.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0a93064

Please sign in to comment.