Intercept response status code in tpds worker and catch errors before proxying