Module: JunglePath::API::Helpers::Rescues

Defined in:
lib/jungle_path/api/helpers/rescues.rb

Class Method Summary collapse

Class Method Details

.handle_not_found(e) ⇒ Object



7
8
9
10
11
# File 'lib/jungle_path/api/helpers/rescues.rb', line 7

def self.handle_not_found(e)
	response = {error_code: 404, error_message: e.message}.to_json
	log response
	Rack::Response.new(response, 404).finish
end