@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | class StatusCode |
21 | 21 | { |
22 | 22 | |
23 | - const CODE = [ |
|
23 | + const CODE = [ |
|
24 | 24 | |
25 | 25 | // Informational 1xx |
26 | 26 | 100 => 'Continue', |
@@ -56,9 +56,9 @@ discard block |
||
56 | 56 | |
57 | 57 | // Client Error 4xx |
58 | 58 | 400 => 'Bad Request', |
59 | - 401 => 'Unauthorized', // Really means "Unauthenticated" |
|
59 | + 401 => 'Unauthorized', // Really means "Unauthenticated" |
|
60 | 60 | 402 => 'Payment Required', |
61 | - 403 => 'Forbidden', // Really means "Unauthorized" |
|
61 | + 403 => 'Forbidden', // Really means "Unauthorized" |
|
62 | 62 | 404 => 'Not Found', |
63 | 63 | 405 => 'Method Not Allowed', |
64 | 64 | 406 => 'Not Acceptable', |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | { |
256 | 256 | try { |
257 | 257 | $withCode += [false]; |
258 | - $status = constant("self::$code"); |
|
258 | + $status = constant("self::$code"); |
|
259 | 259 | |
260 | 260 | return ($withCode[0] ? $status . ' ' : '') . self::CODE[$status]; |
261 | 261 | } catch (\Exception $e) { |