Refactor response error handling.