diff --git a/frontend/pkg/frontend/frontend.go b/frontend/pkg/frontend/frontend.go index 63727cba8..8665b300a 100644 --- a/frontend/pkg/frontend/frontend.go +++ b/frontend/pkg/frontend/frontend.go @@ -726,7 +726,7 @@ func (f *Frontend) ArmSubscriptionPut(writer http.ResponseWriter, request *http. "state": string(subscription.State), }) - _, err = arm.WriteJSONResponse(writer, http.StatusCreated, subscription) + _, err = arm.WriteJSONResponse(writer, http.StatusOK, subscription) if err != nil { f.logger.Error(err.Error()) } diff --git a/frontend/pkg/frontend/frontend_test.go b/frontend/pkg/frontend/frontend_test.go index ad991a25b..8efbe0bf7 100644 --- a/frontend/pkg/frontend/frontend_test.go +++ b/frontend/pkg/frontend/frontend_test.go @@ -139,7 +139,7 @@ func TestSubscriptionsPUT(t *testing.T) { Properties: nil, }, subDoc: nil, - expectedStatusCode: http.StatusCreated, + expectedStatusCode: http.StatusOK, }, { name: "PUT Subscription - Doc Exists", @@ -159,7 +159,7 @@ func TestSubscriptionsPUT(t *testing.T) { Properties: nil, }, }, - expectedStatusCode: http.StatusCreated, + expectedStatusCode: http.StatusOK, }, { name: "PUT Subscription - Invalid Subscription",