etcdhttp: always respond json-format error to client

@unihorn We must document the behavior of etcd during a leader election. It should be something that is put into api.md.