class PopUpArchive::FaradayErrHandler
Public Instance Methods
on_complete(env)
click to toggle source
Calls superclass method
# File lib/popuparchive.rb, line 23 def on_complete(env) # Ignore any non-error response codes return if (status = env[:status]) < 400 #puts "got response status #{status}" case status when 404 #raise Error::NotFound # 404 errors not fatal else #puts pp(env) super # let parent class deal with it end end