code: public function lookup($username) {
          try {
              $data = FortniteClient::sendFortniteGetRequest(FortniteClient::FORTNITE_PERSONA_API . 'public/account/lookup?q=' . urlencode($username),
                                                          $this->access_token);
              return new self($this->access_token, $data->id);
          } catch (GuzzleException $e) {
              if ($e->getResponse()->getStatusCode() == 404) throw new UserNotFoundException('User ' . $username . ' was not found.');
              throw $e; //If we didn't get the user not found status code, just re-throw the error.
          }
      }
docs: Lookup a user by their Epic display name.
  @param  string $username Display name to search
  @return object           New instance of Fortnite\Stats