I have a Cloudfront distribution with a lambda@edge function. The function is called on viewer response event for all traffic. I noticed that when the response status code is 4xx, the function is not called. I found this page which provides an example for updating error statuses for origin response event. I wonder if this is also possible for viewer response.