Custom error pages

I need to add custom error pages in my site. But i noticed that i need
rescue.rb file in lib/action_controller folder. Can somebody help me how
to get that file and how to implement custom error pages please