Soshot/app/Utils/Error.php

14 lines
243 B
PHP
Raw Permalink Normal View History

2023-06-21 11:42:36 +02:00
<?php
namespace App\Utils;
class Error {
private $errorType = [];
function index(object $error) {
http_response_code($error->status);
echo "<h1>404 Not Found</h1>";
echo "$error->message";
exit();
}
}