fixing error responses not living up to expectations