lib/xeroizer/http.rb in xeroizer-float-2.15.3.6 vs lib/xeroizer/http.rb in xeroizer-float-2.15.3.7
- old
+ new
@@ -92,9 +92,11 @@
handle_error!(response, body)
when 401, 503
handle_oauth_error!(response)
when 404
handle_object_not_found!(response, url)
+ when 503
+ handle_oauth_error!(response)
else
raise "Unknown response code: #{response.code.to_i}"
end
rescue Xeroizer::OAuth::RateLimitExceeded
if self.rate_limit_sleep