X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/124909a64c4c2b739cebfff69fcf100e6b6d2457..68845eb7253cd3da14253e004fc1a4fc7eac2e5e:/lib/osm.rb 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