Class: JsTestServer::Server::Resources::NotFound
- Inherits:
-
Resource
- Object
- LuckyLuciano::Resource
- Resource
- JsTestServer::Server::Resources::NotFound
- Includes:
- JsTestServer::Server
- Defined in:
- lib/js_test_server/server/resources/not_found.rb
Constant Summary
Constants included from JsTestServer::Server
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
21 22 23 24 |
# File 'lib/js_test_server/server/resources/not_found.rb', line 21 def call body = Representations::NotFound.new(:message => "File #{request.path_info} not found").to_s [ 404, { "Content-Type" => "text/html" }, body ] end |