With replicas=3, the request can be handled by any of the pods. To introduce the application error and note the errors, we need to make changes in all three of them. Let's make our life easier, by scaling the replicas to 1, so that we can make changes in one pod only:
kubectl scale --replicas=1 deployment/frontend