Class: Puuko::Endpoints::NotFound

Inherits:
Puuko::Endpoint show all
Defined in:
lib/puuko/endpoints/not_found.rb

Constant Summary

Constants inherited from Puuko::Endpoint

Puuko::Endpoint::CALLBACK_KINDS, Puuko::Endpoint::DEFAULT_HEADERS

Instance Attribute Summary

Attributes inherited from Puuko::Endpoint

#params, #request, #response

Instance Method Summary collapse

Methods inherited from Puuko::Endpoint

#body, #execute, #initialize, register_after_callback, register_before_callback, register_callback, register_rescue_callback, registered_callbacks

Constructor Details

This class inherits a constructor from Puuko::Endpoint

Instance Method Details

#handleObject



4
5
6
# File 'lib/puuko/endpoints/not_found.rb', line 4

def handle
  render status: 404
end