class Shaf::Errors::UnauthorizedError

Public Class Methods

new(msg = nil) click to toggle source
Calls superclass method Shaf::Errors::ServerError::new
# File lib/shaf/errors.rb, line 35
def initialize(msg = nil)
  msg ||= "User is not authorized"
  super(msg, code: "UNAUTHORIZED", title: "Unauthorized user")
end

Public Instance Methods

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