ILIAS  release_7 Revision v7.30-3-g800a261c036
StatusCode.php
Go to the documentation of this file.
1<?php
2
3namespace ILIAS\HTTP;
4
13interface StatusCode
14{
15
16 // [Informational 1xx]
17
18 const HTTP_CONTINUE = 100;
20 // [Successful 2xx]
21
22 const HTTP_OK = 200;
23 const HTTP_CREATED = 201;
24 const HTTP_ACCEPTED = 202;
26 const HTTP_NO_CONTENT = 204;
27 const HTTP_RESET_CONTENT = 205;
29 // [Redirection 3xx]
30
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;
39 // [Client Error 4xx]
40
41 const HTTP_BAD_REQUEST = 400;
42 const HTTP_UNAUTHORIZED = 401;
44 const HTTP_FORBIDDEN = 403;
45 const HTTP_NOT_FOUND = 404;
50 const HTTP_CONFLICT = 409;
51 const HTTP_GONE = 410;
59 // [Server Error 5xx]
60
63 const HTTP_BAD_GATEWAY = 502;
67}
An exception for terminatinating execution or to throw for unit testing.
const HTTP_REQUEST_ENTITY_TOO_LARGE
Definition: StatusCode.php:54
const HTTP_INTERNAL_SERVER_ERROR
Definition: StatusCode.php:61
const HTTP_SWITCHING_PROTOCOLS
Definition: StatusCode.php:19
const HTTP_SERVICE_UNAVAILABLE
Definition: StatusCode.php:64
const HTTP_NONAUTHORITATIVE_INFORMATION
Definition: StatusCode.php:25
const HTTP_PROXY_AUTHENTICATION_REQUIRED
Definition: StatusCode.php:48
const HTTP_REQUESTED_RANGE_NOT_SATISFIABLE
Definition: StatusCode.php:57
const HTTP_UNSUPPORTED_MEDIA_TYPE
Definition: StatusCode.php:56
const HTTP_REQUEST_URI_TOO_LONG
Definition: StatusCode.php:55
const HTTP_VERSION_NOT_SUPPORTED
Definition: StatusCode.php:66
const HTTP_PRECONDITION_FAILED
Definition: StatusCode.php:53