JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3RbrsetReason($response['reason'] ?? null) ->setErrorDetails($response['errors'] ?? []) ->setHttpStatus($httpStatus); return $instance; } /** * Gets reason for the error. * * @return null|string */ public function getReason(): ?string { return $this->reason; } /** * Sets reason for the error. * * @param string|null $reason * @return self */ public function setReason(?string $reason): self { $this->reason = $reason; return $this; } /** * Gets additional error details (if available). * * @return string[] */ public function getErrorDetails(): array { return $this->errors; } /** * Sets additional error details. * * @param string[] $errors * @return self */ public function setErrorDetails(array $errors = []): self { $this->errors = $errors; return $this; } /** * Gets the HTTP status code. * * @return null|int */ public function getHttpStatus(): ?int { return $this->httpStatus; } /** * Sets the HTTP status code. * * @param int|null $httpStatus * @return self */ public function setHttpStatus(?int $httpStatus = null): self { $this->httpStatus = $httpStatus; return $this; } }