Validate HTTP API user input

For example, raft indices must be sane integers.
That's not the case if any of the other query params are set to "", though. Why is this a special case?