for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Egzaminer\Controller;
class ErrorController extends AbstractController
{
public function showAction(int $code = 404): string
http_response_code($code);
return $this->render('error', ['title' => 'Error '.$code]);
}