Return http bad request on rpc protocol errors.