2024-10-24 11:00:46 +00:00
|
|
|
<?php
|
|
|
|
|
2024-10-24 11:10:00 +00:00
|
|
|
$statusCodes = [
|
2024-10-24 11:00:46 +00:00
|
|
|
204 => 'No Content',
|
|
|
|
301 => 'Moved Permanently',
|
|
|
|
400 => 'Bad Request',
|
|
|
|
401 => 'Unauthorized',
|
|
|
|
402 => 'Payment Required',
|
|
|
|
403 => 'Forbidden',
|
|
|
|
404 => 'Not Found',
|
|
|
|
410 => 'Gone',
|
|
|
|
423 => 'Locked',
|
|
|
|
501 => 'Not Implemented',
|
|
|
|
];
|
|
|
|
|
2024-10-24 11:10:00 +00:00
|
|
|
$codes = array_keys($statusCodes);
|
|
|
|
|
2024-10-24 11:00:46 +00:00
|
|
|
$code = $codes[random_int(0, count($codes) - 1)];
|
2024-10-24 11:10:00 +00:00
|
|
|
$codeString = $statusCodes[$code];
|
2024-10-24 11:00:46 +00:00
|
|
|
$headline = $code.' '.$codeString;
|
|
|
|
|
|
|
|
http_response_code($code);
|
2024-10-24 11:10:00 +00:00
|
|
|
|
2024-10-24 11:00:46 +00:00
|
|
|
?>
|
2024-10-24 11:10:00 +00:00
|
|
|
|
2024-10-24 11:00:46 +00:00
|
|
|
<html>
|
|
|
|
<head><title><?= $headline ?></title></head>
|
|
|
|
<body>
|
|
|
|
<center><h1><?= $headline ?></h1></center>
|
|
|
|
<hr><center>Nestle Gmbh</center>
|
|
|
|
</body>
|
|
|
|
</html>
|