getStatusCode(); return [ 'request_id' => (string) $response->getHeaderLine('x-amzn-requestid'), 'code' => null, 'message' => null, 'type' => $code[0] == '4' ? 'client' : 'server', 'parsed' => $this->parseJson($response->getBody(), $response) ]; } protected function payload( ResponseInterface $response, StructureShape $member ) { $jsonBody = $this->parseJson($response->getBody(), $response); if ($jsonBody) { return $this->parser->parse($member, $jsonBody); } } }