We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc48a65 commit c96718bCopy full SHA for c96718b
lib/openapi_first/router/find_response.rb
@@ -11,7 +11,7 @@ module FindResponse
11
def self.call(responses, status, content_type, request_method:, path:)
12
contents = find_status(responses, status)
13
if contents.nil?
14
- message = "Status #{status} is not defined for #{request_method} #{path}. " \
+ message = "Status #{status} is not defined for #{request_method.upcase} #{path}. " \
15
"Defined statuses are: #{responses.keys.join(', ')}."
16
return Match.new(error: Failure.new(:response_not_found, message:), response: nil)
17
end
0 commit comments