hide response object for certain exceptions