Server IP : 66.29.132.124 / Your IP : 18.221.93.44 Web Server : LiteSpeed System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : wavevlvu ( 1524) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/wavevlvu/book24.ng/vendor/laravel/framework/src/Illuminate/Http/Client/ |
Upload File : |
<?php namespace Illuminate\Http\Client; class RequestException extends HttpClientException { /** * The response instance. * * @var \Illuminate\Http\Client\Response */ public $response; /** * Create a new exception instance. * * @param \Illuminate\Http\Client\Response $response * @return void */ public function __construct(Response $response) { parent::__construct($this->prepareMessage($response), $response->status()); $this->response = $response; } /** * Prepare the exception message. * * @param \Illuminate\Http\Client\Response $response * @return string */ protected function prepareMessage(Response $response) { $message = "HTTP request returned status code {$response->status()}"; $summary = class_exists(\GuzzleHttp\Psr7\Message::class) ? \GuzzleHttp\Psr7\Message::bodySummary($response->toPsrResponse()) : \GuzzleHttp\Psr7\get_message_body_summary($response->toPsrResponse()); return is_null($summary) ? $message : $message .= ":\n{$summary}\n"; } }