Validate HTTP API user input

For example, raft indices must be sane integers.
What exactly would you like to return to the client?