Module: Scrappy::Errors

Defined in:
lib/scrappy/server/errors.rb

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/scrappy/server/errors.rb', line 3

def self.registered app
  app.error do
    "Internal error"
  end

  app.not_found do
    "Resource not found"
  end
end