Validate HTTP API user input

For example, raft indices must be sane integers.
we have defined the error code for this in etcd/error