Just create your 404 and 500 html pages, use the middleware, and that's it.
Mickael Riga
gem "naughty-step", "~> 0.0.1"