class Shaf::Errors::ForbiddenError

Public Class Methods

new(msg = nil) click to toggle source
Calls superclass method Shaf::Errors::ServerError::new
# File lib/shaf/errors.rb, line 46
def initialize(msg = nil)
  msg ||= "User is not allowed to perform this action"
  super(msg, code: "FORBIDDEN", title: "User not allowed")
end

Public Instance Methods

http_status() click to toggle source
# File lib/shaf/errors.rb, line 42
def http_status
  403
end