Class: CouchProxy::Rack::NotFound

Inherits:
Base
  • Object
show all
Defined in:
lib/couchproxy/rack/not_found.rb

Constant Summary collapse

NOT_FOUND =
'{"error":"not_found","reason":"missing"}'.freeze

Constants inherited from Base

Base::APPLICATION_JSON, Base::DESIGN_ID, Base::INVALID_JSON, Base::METHODS, Base::SERVER_VERSION, Base::TEXT_PLAIN

Instance Attribute Summary

Attributes inherited from Base

#cluster, #request

Instance Method Summary collapse

Methods inherited from Base

#initialize, #proxy_to, #proxy_to_all_nodes, #proxy_to_all_partitions, #proxy_to_any_node, #proxy_to_any_partition, #replicate_to_all_partitions, #rewrite_location, #send_error_response, #send_response, #uuids

Constructor Details

This class inherits a constructor from CouchProxy::Rack::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name) ⇒ Object



8
9
10
# File 'lib/couchproxy/rack/not_found.rb', line 8

def method_missing(name)
  send_response(404, response_headers, [NOT_FOUND])
end