I have to develop one filter that reads the status code of request and based on that if the code is 404, I need to redirect the page somewhere else. The problem is, to find