Parent

Methods

Class/Module Index [+]

Quicksearch

ChefZero::Endpoints::NotFoundEndpoint

Public Instance Methods

call(request) click to toggle source
# File lib/chef_zero/endpoints/not_found_endpoint.rb, line 6
def call(request)
  return [404, {"Content-Type" => "application/json"}, JSON.pretty_generate({"error" => ["Object not found: #{request.env['REQUEST_PATH']}"]})]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.