status, [400, 409, 422], true); } /** * The token was not good enough there: expired, or without access. */ public function isUnauthorised(): bool { return in_array($this->status, [401, 403], true); } public static function unreachable(string $url, ?Throwable $previous = null): self { return new self("TaskStream could not be reached at [{$url}].", previous: $previous); } }