1 class ErrorsController < ApplicationController
4 skip_authorization_check
6 before_action :set_locale
10 format.html { render :status => :bad_request }
11 format.any { render :status => :bad_request, :plain => "" }
16 respond_to do |format|
17 format.html { render :status => :forbidden }
18 format.any { render :status => :forbidden, :plain => "" }
23 respond_to do |format|
24 format.html { render :status => :not_found }
25 format.any { render :status => :not_found, :plain => "" }
29 def internal_server_error
30 respond_to do |format|
31 format.html { render :status => :internal_server_error }
32 format.any { render :status => :internal_server_error, :plain => "" }