E04045 — EmailTemplateLanguageInvalid
The language is not a valid language tag.
- HTTP status: 422
- Type: validation_error
- Name: EmailTemplateLanguageInvalid
What to do
Give the language as a valid BCP-47 tag, for example en or pt-BR. This applies both to the languages you save on a template and to the language you name when you send.
Related
- E04xxx — Email sending & delivery: every code in this range
- Errors: the full wire contract, status mapping, and error catalog
- Error handling: branching on type and code, validation details, and vendor_code