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
23 24 25 |
# File 'lib/otto/errors.rb', line 23 def self.default_log_level :error end |
.default_status ⇒ Object
19 20 21 |
# File 'lib/otto/errors.rb', line 19 def self.default_status 500 end |