From 896a5d622fad670546d17965f56ed29fffdab4ff Mon Sep 17 00:00:00 2001 From: vostlertsd <80632669+vostlertsd@users.noreply.github.com> Date: Mon, 4 Jul 2022 16:45:13 +0300 Subject: [PATCH] Added status codes (RFC6585 & RFC7725) --- src/Swoole/SwooleClient.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Swoole/SwooleClient.php b/src/Swoole/SwooleClient.php index 75b49c5ce..5bbaded37 100644 --- a/src/Swoole/SwooleClient.php +++ b/src/Swoole/SwooleClient.php @@ -21,6 +21,8 @@ class SwooleClient implements Client, ServesStaticFiles { const STATUS_CODE_REASONS = [ 419 => 'Page Expired', + 431 => 'Request Header Fields Too Large', // RFC6585 + 451 => 'Unavailable For Legal Reasons', // RFC7725 ]; public function __construct(protected int $chunkSize = 1048576)