Exception: Kabk::ForbiddenError

Inherits:
ApiError
  • Object
show all
Defined in:
lib/kabk/errors.rb

Instance Attribute Summary

Attributes inherited from ApiError

#code, #fields, #http_status

Instance Method Summary collapse

Methods inherited from ApiError

#to_h

Constructor Details

#initialize(message = "Access denied") ⇒ ForbiddenError

Returns a new instance of ForbiddenError.



46
47
48
# File 'lib/kabk/errors.rb', line 46

def initialize(message = "Access denied")
  super(message, code: "FORBIDDEN", http_status: 403)
end