mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-05 19:59:37 -06:00
refactor: respond 409 conflict if server is already running
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user