1<?php
2
3namespace ILIAS\HTTP;
4
5/**
6 * Interface StatusCode
7 *
8 * Describes most common HTTP-Status-Codes
9 *
10 * @author  Nicolas Schäfli <ns@studer-raimann.ch>
11 * @package ILIAS\HTTP
12 */
13interface StatusCode
14{
15
16    // [Informational 1xx]
17
18    const HTTP_CONTINUE = 100;
19    const HTTP_SWITCHING_PROTOCOLS = 101;
20    // [Successful 2xx]
21
22    const HTTP_OK = 200;
23    const HTTP_CREATED = 201;
24    const HTTP_ACCEPTED = 202;
25    const HTTP_NONAUTHORITATIVE_INFORMATION = 203;
26    const HTTP_NO_CONTENT = 204;
27    const HTTP_RESET_CONTENT = 205;
28    const HTTP_PARTIAL_CONTENT = 206;
29    // [Redirection 3xx]
30
31    const HTTP_MULTIPLE_CHOICES = 300;
32    const HTTP_MOVED_PERMANENTLY = 301;
33    const HTTP_FOUND = 302;
34    const HTTP_SEE_OTHER = 303;
35    const HTTP_NOT_MODIFIED = 304;
36    const HTTP_USE_PROXY = 305;
37    const HTTP_UNUSED = 306;
38    const HTTP_TEMPORARY_REDIRECT = 307;
39    // [Client Error 4xx]
40
41    const HTTP_BAD_REQUEST = 400;
42    const HTTP_UNAUTHORIZED = 401;
43    const HTTP_PAYMENT_REQUIRED = 402;
44    const HTTP_FORBIDDEN = 403;
45    const HTTP_NOT_FOUND = 404;
46    const HTTP_METHOD_NOT_ALLOWED = 405;
47    const HTTP_NOT_ACCEPTABLE = 406;
48    const HTTP_PROXY_AUTHENTICATION_REQUIRED = 407;
49    const HTTP_REQUEST_TIMEOUT = 408;
50    const HTTP_CONFLICT = 409;
51    const HTTP_GONE = 410;
52    const HTTP_LENGTH_REQUIRED = 411;
53    const HTTP_PRECONDITION_FAILED = 412;
54    const HTTP_REQUEST_ENTITY_TOO_LARGE = 413;
55    const HTTP_REQUEST_URI_TOO_LONG = 414;
56    const HTTP_UNSUPPORTED_MEDIA_TYPE = 415;
57    const HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
58    const HTTP_EXPECTATION_FAILED = 417;
59    // [Server Error 5xx]
60
61    const HTTP_INTERNAL_SERVER_ERROR = 500;
62    const HTTP_NOT_IMPLEMENTED = 501;
63    const HTTP_BAD_GATEWAY = 502;
64    const HTTP_SERVICE_UNAVAILABLE = 503;
65    const HTTP_GATEWAY_TIMEOUT = 504;
66    const HTTP_VERSION_NOT_SUPPORTED = 505;
67}
68