From 3ccaec583f44c7a8549253b5848040a1d8e0d785 Mon Sep 17 00:00:00 2001 From: jmf3658 Date: Mon, 23 Jun 2025 12:14:01 -0700 Subject: [PATCH] Substitute nonstandard HTTP 999 Forbidden with 403 Forbidden (LinkedIn) --- src/Http/CurlDispatcher.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Http/CurlDispatcher.php b/src/Http/CurlDispatcher.php index e3312788..e997daf4 100644 --- a/src/Http/CurlDispatcher.php +++ b/src/Http/CurlDispatcher.php @@ -128,6 +128,9 @@ private function getResponse(ResponseFactoryInterface $responseFactory): Respons curl_close($this->curl); + if ($info['http_code'] === 999) { + $info['http_code'] = 403; + } $response = $responseFactory->createResponse($info['http_code']); foreach ($this->headers as $header) {