   end
 
   def recent_games_data(region, summoner_id) do
-    %{"recentGamesData" => %{ summoner_id => Viktor.recent_games(region, summoner_id).body["games"] }}
+    recent_games_response = Viktor.recent_games(region, summoner_id)
+    case recent_games_response.status_code do
+      200 ->
+        %{"recentGamesData" => %{ summoner_id => recent_games_response.body["games"] }}
+      _ ->
+        %{"recentGamesData" => %{ summoner_id => [] }}
+    end
   end
 
   def ranked_response(region, summoner_id) do

  def summoner(conn, %{"region" => region, "summoner_name" => summoner_name}) do
      canonical_name = canonicalize(summoner_name)

      response = Viktor.Operation.Summoner.by_name(region, canonical_name)
      case response.status_code do
         200 ->
           json conn, summoner_profile(region, response.body[canonical_name]) |> wrap_response(region)

            }
    end
  end
end