diff --git a/app.rb b/app.rb index 6bd5136..d1ab2c6 100644 --- a/app.rb +++ b/app.rb @@ -66,6 +66,9 @@ class App < Roda rescue URI::BadURIError response.status = 400 return {message: "invalid url parameter"}.to_json + rescue OpenURI::HTTPError + response.status = 400 + return {message: "url not found"}.to_json end