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



23
24
25
# File 'lib/otto/errors.rb', line 23

def self.default_log_level
  :error
end

.default_statusObject



19
20
21
# File 'lib/otto/errors.rb', line 19

def self.default_status
  500
end