Class: ErrorsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- ErrorsController
- Defined in:
- app/controllers/errors_controller.rb
Instance Method Summary collapse
Methods included from AuthentificationHelper
#accessible_company_ids_from_tenant_and_user, #application_mode_from_hostname, #current_company_id_from_accessible_company_ids, #current_tenant_from_user, #current_user_and_locale_from_token
Instance Method Details
#show ⇒ Object
2 3 4 5 6 |
# File 'app/controllers/errors_controller.rb', line 2 def show status_code = request.path_info[1..-1].to_i render json: { error: "HTTP #{status_code} #{Rack::Utils::HTTP_STATUS_CODES.fetch(status_code, 'Unknown')}" }, status: status_code end |