class Shaf::Errors::BadRequestError
Public Class Methods
new(msg = nil)
click to toggle source
Calls superclass method
Shaf::Errors::ServerError::new
# 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
Public Instance Methods
http_status()
click to toggle source
# File lib/shaf/errors.rb, line 20 def http_status 400 end