What’s the preferred way to handle 404 errors with Play 2.0 and show a nice templated view?
You can override the onHandlerNotFound method on your Global object, e.g.:
onHandlerNotFound
object Global extends GlobalSettings { override def onHandlerNotFound(request: RequestHeader): Result = { NotFound(views.html.notFound(request)) } }