error leakage prevention in response