API problem types / Employees and payroll
HTTP 409 · Conflict
Employee Invalid Transition
https://corplyst.com/problems/employee-invalid-transition
What it means
The employee can't move to the requested status from their current one. Only an active employee can go on leave, only one on leave can be reactivated, and a terminated employee can't change.
What to do
Reload the employee to see their current status.
Example response
Sent with Content-Type: application/problem+json. The detail field describes this specific occurrence.
{
"type": "https://corplyst.com/problems/employee-invalid-transition",
"title": "Employee Invalid Transition",
"status": 409,
"detail": "…"
}