Server IP : 184.154.167.98 / Your IP : 18.117.156.84 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/www/sesiones/3rdparty/aws/aws-sdk-php/src/Api/ErrorParser/ |
Upload File : |
<?php namespace Aws\Api\ErrorParser; use Aws\Api\Parser\PayloadParserTrait; use Psr\Http\Message\ResponseInterface; /** * Provides basic JSON error parsing functionality. */ trait JsonParserTrait { use PayloadParserTrait; private function genericHandler(ResponseInterface $response) { $code = (string) $response->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) ]; } }