Log the response on error