Validate HTTP API user input

For example, raft indices must be sane integers.
Then it's a bad request..