Exception: Servus::Support::Errors::ImATeapotError
- Inherits:
-
ServiceError
- Object
- StandardError
- ServiceError
- Servus::Support::Errors::ImATeapotError
- Defined in:
- lib/servus/support/errors.rb
Overview
418 I'm a Teapot - server refuses to brew coffee because it is a teapot.
Constant Summary collapse
- DEFAULT_MESSAGE =
"I'm a teapot"
Instance Attribute Summary
Attributes inherited from ServiceError
Instance Method Summary collapse
Methods inherited from ServiceError
Constructor Details
This class inherits a constructor from Servus::Support::Errors::ServiceError
Instance Method Details
#api_error ⇒ Object
236 |
# File 'lib/servus/support/errors.rb', line 236 def api_error = { code: http_status, message: } |
#http_status ⇒ Object
235 |
# File 'lib/servus/support/errors.rb', line 235 def http_status = :im_a_teapot |