How to handle 404 errors in MVC 3

In the previous post, I had discussed on how to handle exceptions and error using HandleError attribute.

Today lets try and understand how to handle 404 errors using MVC 3

For this I firstly came across this question on Stack Overflow, followed by this answer and finally this post

This really helped me in handling 404 errors effectively I Hope this helps you too. CheersĀ !