concept static resource in category scalatra
appears as: static resources, static resource, static resources

This is an excerpt from Manning's book Scalatra in Action.
If no action can be found for a URL, Scalatra tries to serve a static resource by invoking serveStaticResource. If no resource can be found, a 404 response is returned with the previously set content type removed. This default behavior is implemented in the notFound handler:
notFound { contentType = null serveStaticResource() getOrElse halt(404, <h1>Not found.</h1>) }If an application requires nonstandard handling of static resources, you can overwrite the notFound handler.