lib/httpsensible/client/response.rb in httpsensible-0.1.1 vs lib/httpsensible/client/response.rb in httpsensible-0.1.2

- old
+ new

@@ -34,10 +34,10 @@ end # sig { params(response: T.any(HTTPX::Response, HTTPX::ErrorResponse)).returns(T::Boolean) } def unavailable? return true if @response.nil? - return false if (200..299).cover?(@response.status) + return true unless (200..299).cover?(response.status) case @response when HTTPX::Response raw_body.nil? || raw_body.empty? || raw_body == "{}" when HTTPX::ErrorResponse