class 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