We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1752fba commit b69679dCopy full SHA for b69679d
src/HttpClient/Plugin/ExceptionThrower.php
@@ -48,7 +48,7 @@ public function handleRequest(RequestInterface $request, callable $next, callabl
48
$status = $response->getStatusCode();
49
50
if ($status >= 400 && $status < 600) {
51
- self::handleError($status, self::getMessage($response));
+ self::handleError($status, self::getMessage($response) ?: $response->getReasonPhrase());
52
}
53
54
return $response;
0 commit comments