Sha256: be162f2566d075b0f6745278dd238cbca8724efd55868247901c5b4a0176180d
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
# frozen_string_literal: true require_relative './http_error_response' # All(?) Rack code is namespaced within this module. module Rack # Module includes our middleware components for managing service API versions. module ServiceApiVersioning # Builds Rack::Response to halt request execution, responding with a 404. class ReportNotFound < HttpErrorResponse DEFAULT_MESSAGE = 'Invalid value for COMPONENT_DESCRIPTION' def self.call(code: 404, message: DEFAULT_MESSAGE) new(code, message).call end end # class Rack::ServiceApiVersioning::ReportNotFound end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rack-service_api_versioning-0.1.1 | lib/rack/service_api_versioning/report_not_found.rb |
rack-service_api_versioning-0.1.0 | lib/rack/service_api_versioning/report_not_found.rb |