client: fail gracefully if we get a 404