if url is invalid, set status to error