---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/57022#article
headline: "57022: Required header is missing or invalid"
url: https://www.twilio.com/docs/api/errors/57022
inLanguage: en
dateModified: 2026-03-25T13:34:46.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 57022: Required header is missing or invalid

Log Type: APPLICATION

Log Level: ERROR

## Description

Twilio Messaging returns This error when a request is missing a required header or includes a header with an invalid value. This error is listed as a Messaging error in the Error and Warning Dictionary.

### Possible causes

* One or more mandatory headers are missing from the request.
* A required header is present, but the value is invalid.

### Possible solutions

* Add every mandatory header required by the request.
* Check the error logs to review the exact error, potential causes, suggested solutions, and the full HTTP request and response associated with the request.

#### Additional resources

* [Debugging Your Twilio Application](/docs/usage/troubleshooting/debugging-your-application)
* [Messages resource](/docs/messaging/api/message-resource)
