From d33d2fa4f77374a781afdb64cfa120921c2a0226 Mon Sep 17 00:00:00 2001 From: Claudio Netto Date: Mon, 17 Aug 2020 17:09:35 -0300 Subject: [PATCH] fix(api): change status code of scale up/down to 200 instead of 201 --- api/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/handlers.go b/api/handlers.go index 20f3ca269..360036cce 100644 --- a/api/handlers.go +++ b/api/handlers.go @@ -27,7 +27,7 @@ func scale(c echo.Context) error { if err = manager.Scale(c.Request().Context(), c.Param("instance"), data.Quantity); err != nil { return err } - return c.NoContent(http.StatusCreated) + return c.NoContent(http.StatusOK) } func getFormFileContent(c echo.Context, key string) ([]byte, error) {