Skip to content

Commit

Permalink
fix(api): change status code of scale up/down to 200 instead of 201
Browse files Browse the repository at this point in the history
  • Loading branch information
nettoclaudio committed Aug 17, 2020
1 parent 8dec91c commit d33d2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit d33d2fa

Please sign in to comment.