---
schema_version: "1"
id: 0af261b466f7cefc74bf8dffcb1901ab831ffc88d2b414ec2366f85d4157489b
title: Warnings Header
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-asynch/guides/api-bulk-v2/reference/bulk-api-2-0-headers-warnings.md
canonical_url: https://developer.salesforce.com/docs/platform/api-asynch/guide/bulk-api-2-0-headers-warnings.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 63417fadf6698fc7b5fb7e6cc3c636b879ce46b1e22f794dcf3c890f6b02da6c
products:
  - Bulk API 2.0 and Bulk API Developer Guide
  - Platform Developer Content
---

# 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."`
