16 101 =>
'Switching Protocols',
21 203 =>
'Non-Authoritative Information',
23 205 =>
'Reset Content',
24 206 =>
'Partial Content',
25 207 =>
'Multi-Status',
26 300 =>
'Multiple Choices',
27 301 =>
'Moved Permanently',
30 304 =>
'Not Modified',
32 306 =>
'Switch Proxy',
33 307 =>
'Temporary Redirect',
35 401 =>
'Unauthorized',
36 402 =>
'Payment Required',
39 405 =>
'Method Not Allowed',
40 406 =>
'Not Acceptable',
41 407 =>
'Proxy Authentication Required',
42 408 =>
'Request Timeout',
45 411 =>
'Length Required',
46 412 =>
'Precondition Failed',
47 413 =>
'Request Entity Too Large',
48 414 =>
'Request-URI Too Long',
49 415 =>
'Unsupported Media Type',
50 416 =>
'Requested Range Not Satisfiable',
51 417 =>
'Expectation Failed',
52 418 =>
'I\'m a teapot',
53 422 =>
'Unprocessable Entity',
55 424 =>
'Failed Dependency',
56 425 =>
'Unordered Collection',
57 426 =>
'Upgrade Required',
59 450 =>
'Blocked by Windows Parental Controls',
60 500 =>
'Internal Server Error',
61 501 =>
'Not Implemented',
63 503 =>
'Service Unavailable',
64 504 =>
'Gateway Timeout',
65 505 =>
'HTTP Version Not Supported',
66 506 =>
'Variant Also Negotiates',
67 507 =>
'Insufficient Storage',
68 509 =>
'Bandwidth Limit Exceeded',
69 510 =>
'Not Extended',
79 public static function status($status) {
80 if (!array_key_exists($status, self::$http_codes)) {
83 if (function_exists(
'http_response_code')) {
84 http_response_code($status);
86 self::httpResponseCode($status);
95 $protocol = (isset(
$_SERVER[
'SERVER_PROTOCOL']) ?
$_SERVER[
'SERVER_PROTOCOL'] : self::PREFIX);
96 $string = $protocol .
' ' . $status .
' ' . self::$http_codes[$status];
97 $GLOBALS[
'http_response_code'] = $status;
99 header($string,
true, $status);
Base class for ILIAS Exception handling.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
static httpResponseCode($status)
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
Add a drawing to the header
Create styles array
The data for the language used.