Validate HTTP API user input

For example, raft indices must be sane integers.
And then do what with it?