class ErrorsController < ApplicationController
  skip_before_action :authorize

  def not_found
    render layout: nil
  end
end

class ErrorsController < ApplicationController
  skip_before_action :authorize

  def not_found
    render layout: nil, status: :not_found
  end
end

Fix error code on 404 page response.
Fix error code on 404 page response.
