Skip to content

Commit a64ac18

Browse files
authored
Added status codes (RFC6585 & RFC7725) (#550)
1 parent a1656f8 commit a64ac18

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Swoole/SwooleClient.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class SwooleClient implements Client, ServesStaticFiles
2121
{
2222
const STATUS_CODE_REASONS = [
2323
419 => 'Page Expired',
24+
431 => 'Request Header Fields Too Large', // RFC6585
25+
451 => 'Unavailable For Legal Reasons', // RFC7725
2426
];
2527

2628
public function __construct(protected int $chunkSize = 1048576)

0 commit comments

Comments
 (0)