Exception: Shaf::Errors::UnprocessableEntityError

Inherits:
ServerError show all
Defined in:
lib/shaf/errors.rb

Instance Attribute Summary

Attributes inherited from ServerError

#code, #title

Instance Method Summary collapse

Constructor Details

#initialize(msg = nil) ⇒ UnprocessableEntityError

Returns a new instance of UnprocessableEntityError.



106
107
108
109
# File 'lib/shaf/errors.rb', line 106

def initialize(msg = nil)
  msg ||= "The server can not process this request"
  super(msg, code: "UNPROCESSABLE_ENTITY", title: "Request can not be processed")
end

Instance Method Details

#http_statusObject



102
103
104
# File 'lib/shaf/errors.rb', line 102

def http_status
  422
end