Exception: Otto::HTTPError
- Inherits:
-
StandardError
- Object
- StandardError
- Otto::HTTPError
- 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.
Direct Known Subclasses
BadRequestError, ForbiddenError, NotFoundError, PayloadTooLargeError, UnauthorizedError
Class Method Summary collapse
Class Method Details
.default_log_level ⇒ Object
30 31 32 |
# File 'lib/otto/errors.rb', line 30 def self.default_log_level :error end |
.default_status ⇒ Object
26 27 28 |
# File 'lib/otto/errors.rb', line 26 def self.default_status 500 end |