Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Warnings Header

Use the Warning header to return warnings, such as the use of a deprecated version of the API.

Header Field Name and Values

Field name: Warning

Field values:

  • warningCode
  • warningMessage

For warnings about deprecated API versions, the warningCode is 299.

Example: Warning: 299 - "This API is deprecated and will be removed by Summer '22. Please see https://help.salesforce.com/articleView?id=000351312 for details."