Return a JSON object when an exception happens, rather than a String which is sent as plain text.

Copy all the fields of Race to RaceWithBet, to make it less confusing.