code: func (h *Handler) serveDemote(w http.ResponseWriter, r *http.Request, params httprouter.Params) {
  	if err := h.Main.Demote(); err != nil {
  		hh.Error(w, err)
  		return
  	}
  }
docs: // serveDemote attempts to demote this peer from a raft peer to a proxy