Replace the exiting query with the following one.
parse @message '[*] "* * *" * * * * * * "*" "*" "*" "*" "*"' as startTime, method, envoyOriginalPath, protocol, responseCode, responseFlags, bytesReceived, bytesSent, duration, upstreamServiceTime, xForwardedFor, userAgent, requestId, host, upstreamHost | sort startTime desc | filter envoyOriginalPath like /^(?!\s*$).+/ | stats count(responseCode) by envoyOriginalPath, responseCode
This query will parse the Envoy access logs, and count the number of response codes per request path. Run the query to get your results.