Commit 00fcb7c
fix(webapp): reschedule past-date status is 400 not 422 to match pre-PR wire shape
My previous "preserve 422 wire-contract" commit got the pre-PR
behaviour wrong: the route's catch block (lines 156-159) has always
converted `ServiceValidationError` to status **400**, not 422.
`ServiceValidationError`'s default of 422 is what the class throws,
but this specific route narrows that to 400 in the catch.
Switch the hoisted validation to 400 with the same `Invalid delay:
<input>` message shape the service produced. SDK consumers keying
retry/classification on 400 see no drift; 422-keying consumers were
never receiving 422 from this endpoint to begin with.
Devin follow-up on the previous reschedule wire-contract fix on
PR #3756 — Devin was right that the pre-PR shape was 400, I read the
ServiceValidationError default rather than the route's actual
conversion.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent f286cbd commit 00fcb7c
1 file changed
Lines changed: 9 additions & 7 deletions
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | | - | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| |||
0 commit comments