erorr handling for no chars/leagues on server (returns a page instead of json)