Exception: Servus::Support::Errors::NotFoundError

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

Overview

404 Not Found - requested resource does not exist.

Constant Summary collapse

DEFAULT_MESSAGE =
'Not found'

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



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

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

#http_statusObject



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

def http_status = :not_found