Collect error code and message when curl fails to retrieve the page.