re-write error handling for visits to short URLs