Exception: StrapiRuby::ForbiddenError

Inherits:
ClientError
  • Object
show all
Defined in:
lib/strapi_ruby/errors/client_error.rb

Instance Method Summary collapse

Constructor Details

#initialize(message, status) ⇒ ForbiddenError

Returns a new instance of ForbiddenError.



22
23
24
# File 'lib/strapi_ruby/errors/client_error.rb', line 22

def initialize(message, status)
  super("#{ErrorMessage.strapi_server_status} #{status}: #{message}. Make sure your strapi_token has the correct permissions or allow public access.")
end