Validate HTTP API user input

For example, raft indices must be sane integers.
What if prevExists is set to ""?