class Rack::ServerPages::NotFound

Public Class Methods

[](file) click to toggle source
# File lib/rack/server_pages.rb, line 268
def self.[](file)
  ::File.file?(file) ? proc { Rack::Response.new([::File.read(file)], 404).finish } : self
end
call(env) click to toggle source
# File lib/rack/server_pages.rb, line 272
def self.call(env)
  Rack::Response.new(["Not Found: #{env['PATH_INFO']}"], 404).finish
end