Consume the response when an error occurs.