$ 0 0 I'm about to embark on your path--webapi on iis. As a workaround to your desired approach, have you tried to catch the error in R with tryCatch function?