Return JSON-RPC errors instead of 500s for malformed requests and params
Merged
JU
10d ago+442+442+012345678901234567890123456789-5-5-0123456789
Hi, while doing an audit of the codebase with Claude Code, it spotted that malformed requests could in many cases cause 500 server errors, with the error getting reported.
This PR adds validation to the places where the audit found they could trigger 500 server errors.