Exception: Shaf::Errors::BadRequestError
- Inherits:
-
ServerError
- Object
- StandardError
- 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.
22 23 24 25 |
# File 'lib/shaf/errors.rb', line 22 def initialize(msg = nil) msg ||= "The request cannot be understood" super(msg, code: "INVALID_REQUEST", title: "Invalid request") end |
Instance Method Details
#http_status ⇒ Object
18 19 20 |
# File 'lib/shaf/errors.rb', line 18 def http_status 400 end |