Class: RackStaticApp::NotFound
- Inherits:
-
Vienna::NotFound
- Object
- Vienna::NotFound
- RackStaticApp::NotFound
- Defined in:
- lib/rackstaticapp.rb
Overview
RackStaticApp::NotFound is a default endpoint not unlike Rack::NotFound. Initialize it with the path to a 404 page and its contents will be served. The difference is that if a 404 page doesn’t exist, a default response, ‘Not Found’ will be served.
Examples
run RackStaticApp::NotFound.new('public/404.html')
run RackStaticApp::NotFound.new # Always return 'Not Found'