Exception: Otto::HTTPError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/otto/errors.rb

Overview

Base class for all Otto HTTP errors

Provides default_status and default_log_level class methods that define the HTTP status code and logging level for the error.

Class Method Summary collapse

Class Method Details

.default_log_levelObject



30
31
32
# File 'lib/otto/errors.rb', line 30

def self.default_log_level
  :error
end

.default_statusObject



26
27
28
# File 'lib/otto/errors.rb', line 26

def self.default_status
  500
end