psu-libraries/psulib_blacklight

View on GitHub
app/controllers/errors_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# 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