From 86fd73e91251d589d868341c2ad778555f0fe9c3 Mon Sep 17 00:00:00 2001 From: Saw-jan Date: Mon, 8 Jul 2024 16:07:34 +0545 Subject: [PATCH] refactor: respond 409 conflict if server is already running --- tests/ociswrapper/wrapper/handlers/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ociswrapper/wrapper/handlers/handler.go b/tests/ociswrapper/wrapper/handlers/handler.go index 5d3b46eca..c2bd1cde5 100644 --- a/tests/ociswrapper/wrapper/handlers/handler.go +++ b/tests/ociswrapper/wrapper/handlers/handler.go @@ -146,7 +146,7 @@ func StartOcisHandler(res http.ResponseWriter, req *http.Request) { } if ocis.IsOcisRunning() { - sendResponse(res, http.StatusInternalServerError, "oCIS server is already running") + sendResponse(res, http.StatusConflict, "oCIS server is already running") return }