JsonRpcResponse
data class JsonRpcResponse(val id: JsonElement?, val result: JsonElement? = null, val error: JsonRpcErrorBody? = null)
A JSON-RPC 2.0 response. Exactly one of result and error is set; ok and failed are the honest way to ask which.
result may legitimately be JSON null — disconnect and prepareExecute both return the OpenRPC Null schema — so "result is null" cannot stand in for "this is an error".