vendor/contao/core-bundle/src/Controller/Page/ErrorPageController.php
line 31
Open in your IDE?