StatusCode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 74
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 74
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
/**
3
 * HttpStatus
4
 *
5
 * PHP version 5
6
 *
7
 * Copyright (C) 2016 Jake Johns
8
 *
9
 * This software may be modified and distributed under the terms
10
 * of the MIT license.  See the LICENSE file for details.
11
 *
12
 * @category  Codes
13
 * @package   Jnjxp\Status
14
 * @author    Jake Johns <[email protected]>
15
 * @copyright 2016 Jake Johns
16
 * @license   http://jnj.mit-license.org/2016 MIT License
17
 * @link      http://jakejohns.net
18
 */
19
20
namespace Jnjxp\HttpStatus;
21
22
/**
23
 * StatusCode
24
 *
25
 * @category Codes
26
 * @package  Jnjxp\HttpStatus
27
 * @author   Jake Johns <[email protected]>
28
 * @license  http://jnj.mit-license.org/ MIT License
29
 * @link     http://jakejohns.net
30
 */
31
class StatusCode
32
{
33
    const HTTP_CONTINUE                        = 100;
34
    const HTTP_SWITCHING_PROTOCOLS             = 101;
35
    const HTTP_PROCESSING                      = 102;
36
    const HTTP_OK                              = 200;
37
    const HTTP_CREATED                         = 201;
38
    const HTTP_ACCEPTED                        = 202;
39
    const HTTP_NON_AUTHORITATIVE_INFORMATION   = 203;
40
    const HTTP_NO_CONTENT                      = 204;
41
    const HTTP_RESET_CONTENT                   = 205;
42
    const HTTP_PARTIAL_CONTENT                 = 206;
43
    const HTTP_MULTI_STATUS                    = 207;
44
    const HTTP_ALREADY_REPORTED                = 208;
45
    const HTTP_IM_USED                         = 226;
46
    const HTTP_MULTIPLE_CHOICES                = 300;
47
    const HTTP_MOVED_PERMANENTLY               = 301;
48
    const HTTP_FOUND                           = 302;
49
    const HTTP_SEE_OTHER                       = 303;
50
    const HTTP_NOT_MODIFIED                    = 304;
51
    const HTTP_USE_PROXY                       = 305;
52
    const HTTP_TEMPORARY_REDIRECT              = 307;
53
    const HTTP_PERMANENT_REDIRECT              = 308;
54
    const HTTP_BAD_REQUEST                     = 400;
55
    const HTTP_UNAUTHORIZED                    = 401;
56
    const HTTP_PAYMENT_REQUIRED                = 402;
57
    const HTTP_FORBIDDEN                       = 403;
58
    const HTTP_NOT_FOUND                       = 404;
59
    const HTTP_METHOD_NOT_ALLOWED              = 405;
60
    const HTTP_NOT_ACCEPTABLE                  = 406;
61
    const HTTP_PROXY_AUTHENTICATION_REQUIRED   = 407;
62
    const HTTP_REQUEST_TIMEOUT                 = 408;
63
    const HTTP_CONFLICT                        = 409;
64
    const HTTP_GONE                            = 410;
65
    const HTTP_LENGTH_REQUIRED                 = 411;
66
    const HTTP_PRECONDITION_FAILED             = 412;
67
    const HTTP_PAYLOAD_TOO_LARGE               = 413;
68
    const HTTP_URI_TOO_LONG                    = 414;
69
    const HTTP_UNSUPPORTED_MEDIA_TYPE          = 415;
70
    const HTTP_REQUESTED_RANGE_NOT_SATISFIABLE = 416;
71
    const HTTP_EXPECTATION_FAILED              = 417;
72
    const HTTP_I_AM_A_TEAPOT                   = 418;
73
    const HTTP_MISDIRECTED_REQUEST             = 421;
74
    const HTTP_UNPROCESSABLE_ENTITY            = 422;
75
    const HTTP_LOCKED                          = 423;
76
    const HTTP_FAILED_DEPENDENCY               = 424;
77
    const HTTP_UPGRADE_REQUIRED                = 426;
78
    const HTTP_PRECONDITION_REQUIRED           = 428;
79
    const HTTP_TOO_MANY_REQUESTS               = 429;
80
    const HTTP_REQUEST_HEADER_FIELDS_TOO_LARGE = 431;
81
    const HTTP_UNAVAILABLE_FOR_LEGAL_REASONS   = 451;
82
    const HTTP_INTERNAL_SERVER_ERROR           = 500;
83
    const HTTP_NOT_IMPLEMENTED                 = 501;
84
    const HTTP_BAD_GATEWAY                     = 502;
85
    const HTTP_SERVICE_UNAVAILABLE             = 503;
86
    const HTTP_GATEWAY_TIMEOUT                 = 504;
87
    const HTTP_VERSION_NOT_SUPPORTED           = 505;
88
    const HTTP_VARIANT_ALSO_NEGOTIATES         = 506;
89
    const HTTP_INSUFFICIENT_STORAGE            = 507;
90
    const HTTP_LOOP_DETECTED                   = 508;
91
    const HTTP_NOT_EXTENDED                    = 510;
92
    const HTTP_NETWORK_AUTHENTICATION_REQUIRED = 511;
93
94
    // @codeCoverageIgnoreStart
95
    /**
96
     * __construct
97
     *
98
     * @access private
99
     */
100
    final private function __construct()
101
    {
102
    }
103
    // @codeCoverageIgnoreEnd
104
}
105