class ErrorsController < ApplicationController # 404 def not_found render status: 404 end # 500 def server_error render status: 500 end end