X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/a949f98ced96734e087a040e1b4fb836001a0da6..56d39b06f2173c753a06fa64db8be1abdc43d01e:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index 9e8198299..daef8d3f0 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -24,6 +24,17 @@ module OSM end end + # Raised when access is denied. + class APIAccessDenied < RuntimeError + def status + :forbidden + end + + def to_s + "Access denied" + end + end + # Raised when an API object is not found. class APINotFoundError < APIError def status