class Rack::ServiceApiVersioning::ReportNoMatchingVersion
Builds Rack::Response to halt request execution with an HTTP status code of 406 (“Not Acceptable”) when no presently available API Version has been specified in an HTTP `Accept` header.
Public Class Methods
call(api_versions:, code: 406)
click to toggle source
# File lib/rack/service_api_versioning/report_no_matching_version.rb, line 13 def self.call(api_versions:, code: 406) new(code, Internals.message_data(api_versions)).call end