This could be condensed a little bit: `return if response.blank? || response.type.blank?`. I'd also like to see the rescue catching the expected error classes if that's possible.