# SalesforceRestErrorDetail (/docs/rest/api/interfaces/SalesforceRestErrorDetail)



[@kysoql/rest](/docs/rest/api) / SalesforceRestErrorDetail

Structured error detail returned by Salesforce REST endpoints.

## Properties [#properties]

| Property                                      | Modifier   | Type                 | Description                                               |
| --------------------------------------------- | ---------- | -------------------- | --------------------------------------------------------- |
| <a id="api-property-errorcode" /> `errorCode` | `readonly` | `string`             | Salesforce REST error code, such as `INVALID_SESSION_ID`. |
| <a id="api-property-message" /> `message`     | `readonly` | `string`             | Human-readable error message returned by Salesforce.      |
| <a id="api-property-fields" /> `fields?`      | `readonly` | readonly `string`\[] | Field API names associated with the error, when supplied. |
