ILIAS  release_8 Revision v8.24
StatusCode.php
Go to the documentation of this file.
1<?php
2
3namespace ILIAS\HTTP;
4
5/******************************************************************************
6 *
7 * This file is part of ILIAS, a powerful learning management system.
8 *
9 * ILIAS is licensed with the GPL-3.0, you should have received a copy
10 * of said license along with the source code.
11 *
12 * If this is not the case or you just want to try ILIAS, you'll find
13 * us at:
14 * https://www.ilias.de
15 * https://github.com/ILIAS-eLearning
16 *
17 *****************************************************************************/
26interface StatusCode
27{
28 // [Informational 1xx]
29
30 public const HTTP_CONTINUE = 100;
31 public const HTTP_SWITCHING_PROTOCOLS = 101;
32 // [Successful 2xx]
33
34 public const HTTP_OK = 200;
35 public const HTTP_CREATED = 201;
36 public const HTTP_ACCEPTED = 202;
38 public const HTTP_NO_CONTENT = 204;
39 public const HTTP_RESET_CONTENT = 205;
40 public const HTTP_PARTIAL_CONTENT = 206;
41 // [Redirection 3xx]
42
43 public const HTTP_MULTIPLE_CHOICES = 300;
44 public const HTTP_MOVED_PERMANENTLY = 301;
45 public const HTTP_FOUND = 302;
46 public const HTTP_SEE_OTHER = 303;
47 public const HTTP_NOT_MODIFIED = 304;
48 public const HTTP_USE_PROXY = 305;
49 public const HTTP_UNUSED = 306;
50 public const HTTP_TEMPORARY_REDIRECT = 307;
51 // [Client Error 4xx]
52
53 public const HTTP_BAD_REQUEST = 400;
54 public const HTTP_UNAUTHORIZED = 401;
55 public const HTTP_PAYMENT_REQUIRED = 402;
56 public const HTTP_FORBIDDEN = 403;
57 public const HTTP_NOT_FOUND = 404;
58 public const HTTP_METHOD_NOT_ALLOWED = 405;
59 public const HTTP_NOT_ACCEPTABLE = 406;
61 public const HTTP_REQUEST_TIMEOUT = 408;
62 public const HTTP_CONFLICT = 409;
63 public const HTTP_GONE = 410;
64 public const HTTP_LENGTH_REQUIRED = 411;
65 public const HTTP_PRECONDITION_FAILED = 412;
67 public const HTTP_REQUEST_URI_TOO_LONG = 414;
68 public const HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
70 public const HTTP_EXPECTATION_FAILED = 417;
71 // [Server Error 5xx]
72
73 public const HTTP_INTERNAL_SERVER_ERROR = 500;
74 public const HTTP_NOT_IMPLEMENTED = 501;
75 public const HTTP_BAD_GATEWAY = 502;
76 public const HTTP_SERVICE_UNAVAILABLE = 503;
77 public const HTTP_GATEWAY_TIMEOUT = 504;
78 public const HTTP_VERSION_NOT_SUPPORTED = 505;
79}
const HTTP_REQUEST_ENTITY_TOO_LARGE
Definition: StatusCode.php:66
const HTTP_INTERNAL_SERVER_ERROR
Definition: StatusCode.php:73
const HTTP_SWITCHING_PROTOCOLS
Definition: StatusCode.php:31
const HTTP_SERVICE_UNAVAILABLE
Definition: StatusCode.php:76
const HTTP_NONAUTHORITATIVE_INFORMATION
Definition: StatusCode.php:37
const HTTP_PROXY_AUTHENTICATION_REQUIRED
Definition: StatusCode.php:60
const HTTP_REQUESTED_RANGE_NOT_SATISFIABLE
Definition: StatusCode.php:69
const HTTP_UNSUPPORTED_MEDIA_TYPE
Definition: StatusCode.php:68
const HTTP_REQUEST_URI_TOO_LONG
Definition: StatusCode.php:67
const HTTP_VERSION_NOT_SUPPORTED
Definition: StatusCode.php:78
const HTTP_PRECONDITION_FAILED
Definition: StatusCode.php:65
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...