---
page_type: error
code: 21402
message: "21402: Invalid Url"
level: ERROR
---

## Error - 21402

### Invalid URL

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.