Cause
The command does not apply to the current state of the object, for example archiving a publication that is not published or reactivating one that is not withdrawn.
What to do
Check the status of the object and use the matching command.
application/problem+json
{
"type": "https://masnet.com/developers/errors/invalid_transition",
"title": "Invalid transition",
"status": 409,
"detail": "...",
"code": "invalid_transition",
"correlation_id": "..."
}