lib/notion/faraday/response/wrap_error.rb in notion-ruby-client-1.0.0 vs lib/notion/faraday/response/wrap_error.rb in notion-ruby-client-1.1.0

- old
+ new

@@ -1,10 +1,10 @@ # frozen_string_literal: true module Notion module Faraday module Response - class WrapError < ::Faraday::Response::Middleware + class WrapError < ::Faraday::Response::Json UNAVAILABLE_ERROR_STATUSES = (500..599).freeze def on_complete(env) return unless UNAVAILABLE_ERROR_STATUSES.cover?(env.status) @@ -17,6 +17,6 @@ raise Notion::Api::Errors::TimeoutError.new('timeout_error', env.response) end end end end -end \ No newline at end of file +end