You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: return proper HTTP status codes and stop coercing input (#129)
#125: HTTP API now returns correct status codes:
- 400 for validation errors (bad input, malformed JSON)
- 404 for not found (run, job)
- 409 for conflict (retrigger pending/leased, cancel completed, delete active)
- 500 only for unexpected internal errors
Added typed error classes: DurablyError, NotFoundError, ValidationError,
ConflictError — all exported for user-land error handling.
#127: Remove all input coercion in POST /trigger. body.input is passed
directly to job.trigger() — Zod handles validation and returns 400 for
invalid/missing input. No more silent null→{} or undefined→{} conversion.
Closes#125Closes#127
Co-authored-by: Claude Opus 4.6 <[email protected]>
0 commit comments