RailsCasts Episode #53: Handling Exceptions (revised) http://railscasts.com/episodes/53-handling-exceptions-revised Requires Ruby 1.9.2 or higher. Commands used in this episode rake middleware rails g controller errors curl localhost:3000/errors/404 > public/404.html