added function to show alert for an NSURL error code