X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/519d402cb2234844f3dfee62cdcb2f3f44d5d618..28839fd1504004bd10f30eeba3d7212c77adfbb4:/lib/osm.rb diff --git a/lib/osm.rb b/lib/osm.rb index c132ff25c..128e65aac 100644 --- a/lib/osm.rb +++ b/lib/osm.rb @@ -17,6 +17,9 @@ module OSM # Raised when an API object is not found. class APINotFoundError < APIError + def render_opts + { :nothing => true, :status => :not_found } + end end # Raised when a precondition to an API action fails sanity check.