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) {