app/controllers/errors_controller.rb
# frozen_string_literal: true
class ErrorsController < ApplicationController
def not_found
respond_to do |format|
format.html { render status: :not_found }
format.all { render plain: 'not found', status: :not_found }
end
end
def internal_server_error
render status: :internal_server_error
end
end