Commit fae74b5
authored
Four 501 exits returned a bare `{ error: '<string>' }` with no machine code, while most REST exits (and the clone / search 501s) already carry one: the cross-object transactional batch route when the runtime has no transaction() — the last untyped exit on that route after the #3897 / #3933 / #3939 line — plus the two saveMetaItem-unsupported exits and the UI-view-resolution-unsupported exit. Each now carries code: 'NOT_IMPLEMENTED', matching clone / search. Additive only (message and status unchanged); existing clients unaffected, new ones can branch on the code. Extended the cross-object batch 501 test to assert the code.
Closes #4067.
1 parent 3abd233 commit fae74b5
3 files changed
Lines changed: 31 additions & 5 deletions
File tree
- .changeset
- packages/rest/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
116 | 118 | | |
117 | 119 | | |
118 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3334 | 3334 | | |
3335 | 3335 | | |
3336 | 3336 | | |
3337 | | - | |
| 3337 | + | |
3338 | 3338 | | |
3339 | 3339 | | |
3340 | 3340 | | |
| |||
3717 | 3717 | | |
3718 | 3718 | | |
3719 | 3719 | | |
3720 | | - | |
| 3720 | + | |
3721 | 3721 | | |
3722 | 3722 | | |
3723 | 3723 | | |
| |||
3780 | 3780 | | |
3781 | 3781 | | |
3782 | 3782 | | |
3783 | | - | |
| 3783 | + | |
3784 | 3784 | | |
3785 | 3785 | | |
3786 | 3786 | | |
| |||
6877 | 6877 | | |
6878 | 6878 | | |
6879 | 6879 | | |
6880 | | - | |
| 6880 | + | |
| 6881 | + | |
| 6882 | + | |
6881 | 6883 | | |
6882 | 6884 | | |
6883 | 6885 | | |
| |||
0 commit comments