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 6f3faeb commit d52ebfbCopy full SHA for d52ebfb
src/Exception/Http/HttpExceptionTrait.php
@@ -48,6 +48,8 @@ public function __construct(ResponseInterface $response)
48
$content = $response->getContent(false);
49
$message = sprintf('HTTP %d returned for "%s".', $code, $url);
50
51
+ $this->awsType = $response->getHeaders(false)['x-amzn-errortype'][0] ?? null;
52
+
53
// Try json_decode it first, fallback to XML
54
if ($body = json_decode($content, true)) {
55
$this->parseJson($body);
0 commit comments