Skip to main content

Errors

Shape

{
"error": {
"code": "ATTENDANCE_LOCKED",
"message": "April 2026 is locked for this unit. Contact SuperAdmin to unlock.",
"details": {
"unit_id": 12,
"month": "2026-04"
}
}
}

HTTP Status Codes

CodeMeaning
200Success.
201Created.
204No Content (e.g. logout).
400Bad request / validation.
401Missing or invalid token.
403Authenticated but not allowed.
404Resource not found / not in scope.
409Conflict (e.g. overlapping shift).
422Validation error with field details.
423Locked (device not approved, attendance month locked).
429Rate limited.
500Server error.

Common Error Codes

CodeWhen
VALIDATION_FAILED422 — input didn't match rules.
UNAUTHENTICATED401.
FORBIDDEN403 — role or scope check failed.
SHIFT_NOT_ASSIGNED400 — employee punched on a date with no shift.
SHIFT_WINDOW_VIOLATION400 — punched outside earliest/latest window.
DEVICE_NOT_APPROVED423 — device binding in effect.
GEO_VIOLATION_BLOCKED400 — geo policy is block.
ATTENDANCE_LOCKED423 — month is locked.
APPROVAL_REQUIRED202 — accepted but awaiting approval.
RATE_LIMITED429.
IDEMPOTENCY_REUSE200 — previous response replayed.