ErrorsController shouldn't inherit ApplicationController, but ActionController::Base

Inheriting `ApplicationController` often causes an issue as it always
has before/after actions. It should encourage to use `ActionController::Base` instead.

[ci skip]
Merge pull request #15823 from yuki24/better-docmentation-for-dynamic-error-pages

ErrorsController shouldn't inherit ApplicationController, but ActionController