1 # frozen_string_literal: true
3 class ErrorsController < ApplicationController
6 skip_authorization_check
8 before_action :set_locale
11 respond_to do |format|
12 format.html { render :status => :bad_request }
13 format.any { render :status => :bad_request, :plain => "" }
18 respond_to do |format|
19 format.html { render :status => :forbidden }
20 format.any { render :status => :forbidden, :plain => "" }
25 respond_to do |format|
26 format.html { render :status => :not_found }
27 format.any { render :status => :not_found, :plain => "" }
31 def internal_server_error
32 respond_to do |format|
33 format.html { render :status => :internal_server_error }
34 format.any { render :status => :internal_server_error, :plain => "" }