Class: ChefZero::Endpoints::NotFoundEndpoint

Inherits:
Object
  • Object
show all
Defined in:
lib/chef_zero/endpoints/not_found_endpoint.rb

Instance Method Summary collapse

Instance Method Details

#call(request) ⇒ Object



6
7
8
# File 'lib/chef_zero/endpoints/not_found_endpoint.rb', line 6

def call(request)
  [404, { "Content-Type" => "application/json" }, FFI_Yajl::Encoder.encode({ "error" => ["Object not found: #{request.env["REQUEST_PATH"]}"] }, pretty: true)]
end