Misleading HTTP 200 Status on API Error Response (Code 603) with bulk API
We’ve observed that the Bulk Export API returns an HTTP status of `200 OK` even when the response body contains an error. For example, we received the following response:
when using a bulk api i.e
bulk/v1/leads/export/{ExportID}/file.json
{
"requestId": "4aac#17c",
"success": false,
"errors": [
{
"code": "603",
"message": "Access denied"
}
]
}
Despite the `"success": false` flag and error code `603`, the HTTP status was still `200 OK`. This behavior is misleading and complicates error handling, as it suggests the request was successful when it clearly wasn’t.
We’d like to understand:
- Is this the expected behavior for the API?
- Are there plans to align HTTP status codes with the actual success/failure of the request?
- What is the recommended best practice for detecting and handling such errors?
Thanks
