updated the response code to MethodDelete from Ok To NoContent

This commit is contained in:
hyung-hwan 2025-02-28 17:26:46 +09:00
parent 71a42af593
commit 04e2de609e

View File

@ -487,7 +487,7 @@ func (ctl *server_ctl_server_conns_id_routes_id_peers) ServeHTTP(w http.Response
case http.MethodDelete: case http.MethodDelete:
r.ReqStopAllServerPeerConns() r.ReqStopAllServerPeerConns()
status_code = WriteEmptyRespHeader(w, http.StatusOK) status_code = WriteEmptyRespHeader(w, http.StatusNoContent)
default: default:
status_code = WriteEmptyRespHeader(w, http.StatusMethodNotAllowed) status_code = WriteEmptyRespHeader(w, http.StatusMethodNotAllowed)