---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/21402#article
headline: "21402: Invalid Url"
url: https://www.twilio.com/docs/api/errors/21402
inLanguage: en
dateModified: 2026-03-11T20:01:16.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 21402: Invalid Url

Log Level: ERROR

## Description

You attempted to update the URL handler associated with a phone number, but the URL you specified was not valid.

### Possible solutions

Make sure you submit a fully qualified URL including:

* protocol (http:// or https://)
* hostname
* file path
* properly url-encoded query parameters

Twilio must be able to reach this URL over the public Internet.
