diff --git a/http/task_service.go b/http/task_service.go index c214c0f6d5b..d4eb1ffeac4 100644 --- a/http/task_service.go +++ b/http/task_service.go @@ -954,7 +954,7 @@ func (h *TaskHandler) handleForceRun(w http.ResponseWriter, r *http.Request) { h.HandleHTTPError(ctx, err, w) return } - if err := encodeResponse(ctx, w, http.StatusOK, newRunResponse(*run)); err != nil { + if err := encodeResponse(ctx, w, http.StatusCreated, newRunResponse(*run)); err != nil { logEncodingError(h.logger, r, err) return }