Skip to content
Snippets Groups Projects
Commit 7324740a authored by Alex Reisner's avatar Alex Reisner
Browse files

Handle 503 HTTP response.

This is not currently returned by any of the supported lookups,
but it COULD be.
parent 30a822e9
No related branches found
No related tags found
No related merge requests found
......@@ -252,6 +252,9 @@ module Geocoder
elsif response.code.to_i == 429
raise_error(Geocoder::OverQueryLimitError) ||
warn("Geocoding API error: 429 Too Many Requests")
elsif response.code.to_i == 503
raise_error(Geocoder::ServiceUnavailable) ||
warn("Geocoding API error: 503 Service Unavailable")
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment