lead_import_state_invalid
The import is not at a step that allows this (mapping a committed list, deciding rows of a discarded one, committing one still being mapped). status says where it is.
Problem shape
Every non-2xx response is an RFC 9457 application/problem+json body. The type URI below is stable and machine-matchable, so branch on the final path segment (the code) and treat the status as redundant confirmation. See the error-handling guide.
{
"type": "https://docs.vocapable.com/errors/lead_import_state_invalid",
"title": "…",
"status": 409,
"detail": "…",
"instance": "/v1/…"
}