Added URL error functionality