X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/14936150ac8ab5cb4e8347b772b2c966f2add43f..22e079a3c3c98fe3cf3b727732af0b2c92ff075f:/lib/osm.rb?ds=sidebyside diff --git a/lib/osm.rb b/lib/osm.rb index 6d945c4fe..905f3ac97 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -355,6 +355,10 @@ module OSM # Raised when a rate limit is exceeded class APIRateLimitExceeded < APIError + def initialize + super "Rate limit exceeded" + end + def status :too_many_requests end