Class: Rack::ServiceApiVersioning::ReportNotFound

Inherits:
HttpErrorResponse show all
Defined in:
lib/rack/service_api_versioning/report_not_found.rb

Overview

Builds Rack::Response to halt request execution, responding with a 404.

Constant Summary collapse

DEFAULT_MESSAGE =
'Invalid value for COMPONENT_DESCRIPTION'

Class Method Summary collapse

Methods inherited from HttpErrorResponse

#call

Class Method Details

.call(code: 404, message: DEFAULT_MESSAGE) ⇒ Object



13
14
15
# File 'lib/rack/service_api_versioning/report_not_found.rb', line 13

def self.call(code: 404, message: DEFAULT_MESSAGE)
  new(code, message).call
end