Exception: Shaf::Errors::BadRequestError
- Inherits:
-
ServerError
- Object
- StandardError
- Shaf::Error
- ServerError
- Shaf::Errors::BadRequestError
- Defined in:
- lib/shaf/errors.rb
Instance Attribute Summary
Attributes inherited from ServerError
Instance Method Summary collapse
- #http_status ⇒ Object
-
#initialize(msg = nil) ⇒ BadRequestError
constructor
A new instance of BadRequestError.
Constructor Details
#initialize(msg = nil) ⇒ BadRequestError
Returns a new instance of BadRequestError.
24 25 26 27 |
# File 'lib/shaf/errors.rb', line 24 def initialize(msg = nil) msg ||= "The request could not be understood" super(msg, code: "INVALID_REQUEST", title: "Invalid request") end |
Instance Method Details
#http_status ⇒ Object
20 21 22 |
# File 'lib/shaf/errors.rb', line 20 def http_status 400 end |