Handle possible API errors
Fixed Statistics route