} else if (!url.match(urlRegex)) {
      return new Response(
        JSON.stringify({ status: "error", result: "invalid URL specified" }),
        {
          headers: {