refactor: respond 409 conflict if server is already running

This commit is contained in:
Saw-jan
2024-07-08 16:07:34 +05:45
parent 2b88c194bc
commit 86fd73e912

View File

@@ -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
}