Success and failure code responses to your HTTP POST requests

The following table provides the various success and failure code responses to your HTTP POST requests, which can help you troubleshoot any problems with your HTTP collector configuration.

| Success/failure response code | Description | Output code displayed (if applicable) |
| ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 200 | Success code that indicates there are no errors and the request was successful. The `last_used` field timestamp is updated accordingly. | `{ "ok": "true"}` |
| 400 | <p>Error code that indicates that there is a problem with any of the following:</p><ul><li>The partition date value (<code>x-cortex-partition</code>) is missing or empty in the HTTP request.</li><li>The partition date value in the HTTP request (<code>x-cortex-partition</code>) isn't in the correct format of <code>YYYY-MM-DD</code>.</li><li>Dataset name value (x-cortex-source-dataset) is missing or empty in the HTTP request.</li></ul> | <ul><li><p>Partition date value missing or empty in HTTP request:</p><p><code>{ "error": "partition value is missing or empty"}</code></p></li><li><p>Partition date value isn't in the correct format of <code>YYYY-MM-DD</code>:</p><p><code>{ "error": "partition value must be in the format YYYY-MM-DD"}</code></p></li><li><p>Dataset name value is missing or empty in the HTTP request:</p><p><code>{ "error": "sourceDataset value is missing or empty"}</code></p></li></ul> |
| 401 | Unauthorized error code that indicates an incorrect authorization key for the HTTP collector is being used. | `{ "error": "Failed to validate authentication detail"}` |
| 403 | <p>Error code that indicates one of the following:</p><ul><li>Wrong header key for the HTTP collector is in the HTTP request and cannot be used.</li><li>Partition date value (x-cortex-partition) in the HTTP request is not within the license retention period for hot and cold storage.</li></ul> | <ul><li><p>Wrong header key in HTTP request:</p><p><code>The Bulk Load configuration has been deleted and cannot be used</code></p></li><li><p>Partition date value not within the license retention period for hot and cold storage:</p><p><code>partition is less than license start date</code></p></li></ul> |
| 413 | Error code indicating the request entity is too large as the request size is more than the 25 MB limit. | `Request entity too large as the size is more than 25 MB limit` |
| 429 | <p>Error code indicating too many requests as the ingestion limits are reached for one of the following reasons:</p><ul><li>Daily ingestion limit of &#x3C;number> files is exceeded.</li><li>Daily file size ingestion limit of &#x3C;number> GB is exceeded.</li></ul> | <ul><li><p>Daily ingestion file limit exceeded:</p><p><code>exceeds daily limit of &#x3C;number> files</code></p></li><li><p>Daily ingestion file size limit exceeded:</p><p><code>Daily file size limit of &#x3C;number> GB for HTTP requests sent is exceeded</code></p></li></ul> |
| 500 | Error code indicating an unexpected internal error while processing the bulk load HTTP request. | `Unexpected error while processing bulk load request` |