From 86082c884d1e4c95edc0c82995727ace7dc5fbbb Mon Sep 17 00:00:00 2001 From: Chloe Kaubisch Date: Tue, 31 Aug 2021 13:45:48 +0200 Subject: [PATCH] cloudapi: fix compose return value Correct compose successful return status from http.StatusOK to http.StatusCreated. Mistakenly set to http.StatusOK in previous commit. --- internal/cloudapi/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cloudapi/server.go b/internal/cloudapi/server.go index a1b443e66..23c7e1381 100644 --- a/internal/cloudapi/server.go +++ b/internal/cloudapi/server.go @@ -426,7 +426,7 @@ func (h *apiHandlers) Compose(ctx echo.Context) error { var response ComposeResult response.Id = id.String() - return ctx.JSON(http.StatusOK, response) + return ctx.JSON(http.StatusCreated, response) } // ComposeStatus handles a /compose/{id} GET request