Exception: Servus::Support::Errors::ServiceUnavailableError

Inherits:
ServiceError
  • Object
show all
Defined in:
lib/servus/support/errors.rb

Overview

503 Service Unavailable - dependency temporarily unavailable.

Constant Summary collapse

DEFAULT_MESSAGE =
'Service unavailable'

Instance Attribute Summary

Attributes inherited from ServiceError

#message

Instance Method Summary collapse

Methods inherited from ServiceError

#initialize

Constructor Details

This class inherits a constructor from Servus::Support::Errors::ServiceError

Instance Method Details

#api_errorObject



151
# File 'lib/servus/support/errors.rb', line 151

def api_error = { code: http_status, message: message }

#http_statusObject



150
# File 'lib/servus/support/errors.rb', line 150

def http_status = :service_unavailable