require 'evrythng/error/client_error' module Evrythng # Raised when Evrythng returns the HTTP status code 420 class Error::EnhanceYourCalm < Evrythng::Error::ClientError # The number of seconds your application should wait before requesting date from the Search API again def retry_after @http_headers.values_at('retry-after', 'Retry-After').detect{|value| value }.to_i end end end