Exception: MinatoErrorHandler::Errors::NotAuthorizedError

Inherits:
InternalError show all
Defined in:
lib/minato_error_handler/errors/not_authorized_error.rb

Instance Attribute Summary

Attributes inherited from MinatoError

#caused_by, #debug_details, #details, #http_request, #http_response

Instance Method Summary collapse

Methods inherited from MinatoError

#as_json, #backtrace=, #code, #error_reporting_type, #json_response, #stack_trace, #to_json, #unique_identifier

Instance Method Details

#messageObject



6
7
8
# File 'lib/minato_error_handler/errors/not_authorized_error.rb', line 6

def message
  "you are not allowed to perform this action"
end

#status_codeObject



10
11
12
# File 'lib/minato_error_handler/errors/not_authorized_error.rb', line 10

def status_code
  403
end