*/ protected array $errorData = []; /** * Response headers to attach (HttpExceptionInterface contract). * * @var array */ protected array $headers = []; public function getStatusCode(): int { return $this->statusCode; } /** * @return array */ public function getHeaders(): array { return $this->headers; } public function getRpcCode(): int { return $this->rpcCode; } /** * @return array */ public function getErrorData(): array { return $this->errorData; } /** * Client-safe message. Defaults to getMessage(); override to curate what a client sees. */ public function getClientMessage(): string { return $this->getMessage(); } }