@@ -305,7 +305,7 @@ discard block |
||
| 305 | 305 | |
| 306 | 306 | interface HttpStatus |
| 307 | 307 | { |
| 308 | - const CODE = [ |
|
| 308 | + const CODE = [ |
|
| 309 | 309 | // Informational 1xx |
| 310 | 310 | 100 => 'Continue', |
| 311 | 311 | 101 => 'Switching Protocols', |
@@ -340,9 +340,9 @@ discard block |
||
| 340 | 340 | |
| 341 | 341 | // Client Error 4xx |
| 342 | 342 | 400 => 'Bad Request', |
| 343 | - 401 => 'Unauthorized', // Really means "Unauthenticated" |
|
| 343 | + 401 => 'Unauthorized', // Really means "Unauthenticated" |
|
| 344 | 344 | 402 => 'Payment Required', |
| 345 | - 403 => 'Forbidden', // Really means "Unauthorized" |
|
| 345 | + 403 => 'Forbidden', // Really means "Unauthorized" |
|
| 346 | 346 | 404 => 'Not Found', |
| 347 | 347 | 405 => 'Method Not Allowed', |
| 348 | 348 | 406 => 'Not Acceptable', |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | { |
| 91 | 91 | try { |
| 92 | 92 | $withCode += [false]; |
| 93 | - $status = constant("self::$code"); |
|
| 93 | + $status = constant("self::$code"); |
|
| 94 | 94 | |
| 95 | 95 | return ($withCode[0] ? $status . ' ' : '') . self::CODE[$status]; |
| 96 | 96 | } catch (Exception $e) { |