Skip to main content

Error Handling

Audience

Developers, QA engineers, support engineers, security engineers, solution architects, and implementation partners.

Reference Content

This page records source-verified Workforce Scheduling API behavior and boundaries.

Summary

Application commands return typed results for validation, missing resources, conflicts, and forbidden operations. Endpoint adapters map those results differently for native and compatibility clients.

ConditionNative mappingCompatibility mapping
Success200 standard envelope200 bare value
Validation400 standard error envelope400 bare error
Not found404 standard error envelope404 bare error
Conflict409 standard error envelope400 bare error
Forbidden403 standard error envelope403 bare error
Missing tenant exception400 tenant error envelope400 bare error
Domain/argument exception400 standard error envelope400 bare error for handled argument cases

Compatibility delete has a special plain-text success. Framework binding failures follow minimal-API behavior and are not explicitly reshaped in these adapters.

Unhandled failures

The wrappers do not define a general exception response. Unexpected exceptions therefore follow framework/server handling. No module-specific problem-details contract, centralized exception handler, retry contract, or error-code catalog was verified.

Information exposure

Several source errors include submitted identifiers or names. Production error-detail policy requires security review.

Source References

  • microservices/src/attendance-service/Application/Common/Cqrs.cs
  • microservices/src/attendance-service/Api/AttendanceDirectEndpoints.cs
  • microservices/src/attendance-service/Api/AttendanceCompatibilityEndpoints.cs
  • microservices/src/attendance-service/Program.cs

See Also

Keywords

  • Workforce Scheduling API
  • Shift endpoints
  • Attendance policy API

Revision Information

  • Status: Draft
  • Last reviewed: 2026-07-20
  • Next review: 2026-10-20