Listen for errors on the HTTP request