Exception: EndpointFlux::Exceptions::ServiceUnavailable

Inherits:
Base
  • Object
show all
Defined in:
lib/endpoint_flux/exceptions/service_unavailable.rb

Instance Attribute Summary

Attributes inherited from Base

#messages

Instance Method Summary collapse

Methods inherited from Base

#initialize, #inspect

Constructor Details

This class inherits a constructor from EndpointFlux::Exceptions::Base

Instance Method Details

#to_hashObject



4
5
6
7
8
9
# File 'lib/endpoint_flux/exceptions/service_unavailable.rb', line 4

def to_hash
  {
    status: 503,
    message: 'service unavailable'
  }
end