status(); $this->rawBody = $response->json() ?? $response->body(); $body = $response->json(); $this->errors = $body['errors'] ?? []; $message = "Asaas API Error ($status): " . collect($this->errors)->pluck('description')->join(', '); if (empty($this->errors) && is_string($this->rawBody)) { $message .= " | Response: " . $this->rawBody; } parent::__construct($message, $status); } }