-
Notifications
You must be signed in to change notification settings - Fork 0
/
HttpStatus.php
47 lines (46 loc) · 1.5 KB
/
HttpStatus.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?
class HttpStatus
{
const Continuing = 100;
const SwitchingProtocols = 101;
const OK = 200;
const Created = 201;
const Accepted = 202;
const NonAuthoritativeInformation = 203;
const NoContent = 204;
const ResetContent = 205;
const PartialContent = 206;
/* 300 => 'Multiple Choices',
301 => 'Moved Permanently',
302 => 'Found',
303 => 'See Other',
304 => 'Not Modified',
305 => 'Use Proxy',
306 => '(Unused)',
307 => 'Temporary Redirect',
400 => 'Bad Request',
401 => 'Unauthorized',
402 => 'Payment Required',
403 => 'Forbidden',
404 => 'Not Found',
405 => 'Method Not Allowed',
406 => 'Not Acceptable',
407 => 'Proxy Authentication Required',
408 => 'Request Timeout',
409 => 'Conflict',
410 => 'Gone',
411 => 'Length Required',
412 => 'Precondition Failed',
413 => 'Request Entity Too Large',
414 => 'Request-URI Too Long',
415 => 'Unsupported Media Type',
416 => 'Requested Range Not Satisfiable',
417 => 'Expectation Failed', */
const InternalServerError = 500;
const NotImplemented = 501;
const BadGateway = 502;
const ServiceUnavailable = 503;
const GatewayTimeout = 504;
const HTTPVersionNotSupported = 505;
}
?>