---
schema_version: "1"
id: 856000b7f12787c0a0fa77747ed05df927d4cc3d4ff3042a92e3dcf2e308644b
title: ConnectApi.​EinsteinPrompt​Template​GenerationsError
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_connectapi_output_einstein_prompt_template_generations_error.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_connectapi_output_einstein_prompt_template_generations_error.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e89d135077d59192b8043b043bdec4395d4c1f706bd86b3217d1ae82c4f69615
description: Error response to a prompt template generation request.
---
# ConnectApi.​EinsteinPrompt​Template​GenerationsError

Error response to a prompt template generation request.

| Property Name | Type | Description | Available Version |
| --- | --- | --- | --- |
| errorMessage | String | Message stating the reason for the error, if any. | 60.0 |
| httpErrorCode | String | HTTP status code, if any. | 60.0 |
| localized​ErrorMessage | String | Translated error message, if available. | 60.0 |
| messageCode | String | Message code associated with the error message, if any. | 60.0 |