Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
| RequestStatus | n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||
| 1 | <?php |
| 2 | /** |
| 3 | * Jingga |
| 4 | * |
| 5 | * PHP Version 8.1 |
| 6 | * |
| 7 | * @package phpOMS\Message\Http |
| 8 | * @copyright Dennis Eichhorn |
| 9 | * @license OMS License 2.0 |
| 10 | * @version 1.0.0 |
| 11 | * @link https://jingga.app |
| 12 | */ |
| 13 | declare(strict_types=1); |
| 14 | |
| 15 | namespace phpOMS\Message\Http; |
| 16 | |
| 17 | use phpOMS\Stdlib\Base\Enum; |
| 18 | |
| 19 | /** |
| 20 | * Request status enum. |
| 21 | * |
| 22 | * @package phpOMS\Message\Http |
| 23 | * @license OMS License 2.0 |
| 24 | * @link https://jingga.app |
| 25 | * @since 1.0.0 |
| 26 | */ |
| 27 | abstract class RequestStatus extends Enum |
| 28 | { |
| 29 | public const R_100 = 'Continue'; |
| 30 | |
| 31 | public const R_101 = 'Switching Protocols'; |
| 32 | |
| 33 | public const R_102 = 'Processing'; |
| 34 | |
| 35 | public const R_200 = 'OK'; |
| 36 | |
| 37 | public const R_201 = 'Created'; |
| 38 | |
| 39 | public const R_202 = 'Accepted'; |
| 40 | |
| 41 | public const R_203 = 'Non-Authoritative Information'; |
| 42 | |
| 43 | public const R_204 = 'No Content'; |
| 44 | |
| 45 | public const R_205 = 'Reset Content'; |
| 46 | |
| 47 | public const R_206 = 'Partial Content'; |
| 48 | |
| 49 | public const R_207 = 'Multi-Status'; |
| 50 | |
| 51 | public const R_300 = 'Multiple Choices'; |
| 52 | |
| 53 | public const R_301 = 'Moved Permanently'; |
| 54 | |
| 55 | public const R_302 = 'Found'; |
| 56 | |
| 57 | public const R_303 = 'See Other'; |
| 58 | |
| 59 | public const R_304 = 'Not Modified'; |
| 60 | |
| 61 | public const R_305 = 'Use Proxy'; |
| 62 | |
| 63 | public const R_306 = 'Switch Proxy'; |
| 64 | |
| 65 | public const R_307 = 'Temporary Redirect'; |
| 66 | |
| 67 | public const R_400 = 'Bad Request'; |
| 68 | |
| 69 | public const R_401 = 'Unauthorized'; |
| 70 | |
| 71 | public const R_402 = 'Payment Required'; |
| 72 | |
| 73 | public const R_403 = 'Forbidden'; |
| 74 | |
| 75 | public const R_404 = 'Not Found'; |
| 76 | |
| 77 | public const R_405 = 'Method Not Allowed'; |
| 78 | |
| 79 | public const R_406 = 'Not Acceptable'; |
| 80 | |
| 81 | public const R_407 = 'Proxy Authentication Required'; |
| 82 | |
| 83 | public const R_408 = 'Request Timeout'; |
| 84 | |
| 85 | public const R_409 = 'Conflict'; |
| 86 | |
| 87 | public const R_410 = 'Gone'; |
| 88 | |
| 89 | public const R_411 = 'Length Required'; |
| 90 | |
| 91 | public const R_412 = 'Precondition Failed'; |
| 92 | |
| 93 | public const R_413 = 'Request Entity Too Large'; |
| 94 | |
| 95 | public const R_414 = 'Request-URI Too Long'; |
| 96 | |
| 97 | public const R_415 = 'Unsupported Media Type'; |
| 98 | |
| 99 | public const R_416 = 'Requested Range Not Satisfiable'; |
| 100 | |
| 101 | public const R_417 = 'Expectation Failed'; |
| 102 | |
| 103 | public const R_418 = 'I\'m a teapot'; |
| 104 | |
| 105 | public const R_421 = 'Misdirected Request'; |
| 106 | |
| 107 | public const R_422 = 'Unprocessable Entity'; |
| 108 | |
| 109 | public const R_423 = 'Locked'; |
| 110 | |
| 111 | public const R_424 = 'Failed Dependency'; |
| 112 | |
| 113 | public const R_425 = 'Unordered Collection'; |
| 114 | |
| 115 | public const R_426 = 'Upgrade Required'; |
| 116 | |
| 117 | public const R_431 = 'Request Header Fields Too Large'; |
| 118 | |
| 119 | public const R_449 = 'Retry With'; |
| 120 | |
| 121 | public const R_450 = 'Blocked by Windows Parental Controls'; |
| 122 | |
| 123 | public const R_500 = 'Internal Server Error'; |
| 124 | |
| 125 | public const R_501 = 'Not Implemented'; |
| 126 | |
| 127 | public const R_502 = 'Bad Gateway'; |
| 128 | |
| 129 | public const R_503 = 'Service Unavailable'; |
| 130 | |
| 131 | public const R_504 = 'Gateway Timeout'; |
| 132 | |
| 133 | public const R_505 = 'HTTP Version Not Supported'; |
| 134 | |
| 135 | public const R_506 = 'Variant Also Negotiates'; |
| 136 | |
| 137 | public const R_507 = 'Insufficient Storage'; |
| 138 | |
| 139 | public const R_509 = 'Bandwidth Limit Exceeded'; |
| 140 | |
| 141 | public const R_510 = 'Not Extended'; |
| 142 | |
| 143 | public const R_511 = 'Network Authentication Required'; |
| 144 | } |