Error template duplicates
### Original discussion
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/169039#note_2184684488
### Problem
GitLab uses templates to render error pages. Currently we have two places where they are stored:
1. [`public/*`](https://gitlab.com/gitlab-org/gitlab/-/tree/67932217effafb51999c3c19d8fe9a95115db78a/public) (for static templates)
2. [`app/views/errors/*`](https://gitlab.com/gitlab-org/gitlab/-/tree/67932217effafb51999c3c19d8fe9a95115db78a/app/views/errors) (for dynamic templates)
That leads to a duplication of templates. We have to maintain two versions of them.
### Proposal
1. Investigate why we do need `public/*` templates
2. Consider migrating to `app/views/errors` templates as a SSOT
### Investigation
Looks like these static templates are used by NGINX. I found an old MR that introduced them: https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/962/diffs#1b97df6746ac50cc4a2be53e581f356c8282673d_79_82. When error code is 404, 500 or 502 the response from Rails app is replaced with a static page.
issue