Class: JsTestServer::Server::Resources::NotFound

Inherits:
Resource
  • Object
show all
Includes:
JsTestServer::Server
Defined in:
lib/js_test_server/server/resources/not_found.rb

Constant Summary

Constants included from JsTestServer::Server

DEFAULTS

Instance Method Summary collapse

Instance Method Details

#callObject



21
22
23
24
# File 'lib/js_test_server/server/resources/not_found.rb', line 21

def call
  body = Views::NotFound.new(:message => "File #{request.path_info} not found").to_s
  [ 404, { "Content-Type" => "text/html" }, body ]
end