Version 2, last updated by timperrett at 20 Jan 11:18 UTC
Custom 404 - URI not found page
In Boot.scala you can add the following code to render a custom 404 page:
LiftRules.uriNotFound.prepend(NamedPF("404handler"){
case (req,failure) =>
NotFoundAsTemplate(ParsePath(List("404"),"html",false,false))
})
The 404.html or 404[locale].html should now be rendered when requesting a unknown resource.
See also: Nice 404s sans Redirect