avoid rendering 500 when curl could not resolve hostname of url and gracefully render a 404