Validate HTTP API user input

For example, raft indices must be sane integers.
it is confusing to add `keysPrefix` here.
change the func name to reflect that?