Yii Invalid Redirects

How can I redirect to or render an invalid page in my website if the user tried to type in the URL an action in controller that doesn’t exist. I wanted a common code for this as I have many controllers in website so that If a user type in action that is wrong or does not exists will redirect to page saying " You are lost or request page did not found"?

http://www.yiiframework.com/doc/guide/1.1/en/topics.error#handling-errors-using-an-action

Thank you Red. This helped me solve my issue

Thanks for the post. It helped me.