Commit cb07e54
committed
fix: add 400 response validator to prevent 500 in TEST_MODE
When _internalRouteActionHandler catches errors and returns status 400,
the Router's response validation in TEST_MODE requires a matching
response validator. Without a 400 validator, it throws
'Missing response validator' which becomes HTTP 500.
Also remove unnecessary null check that wasn't in original code.1 parent 15cdd41 commit cb07e54
1 file changed
+10
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
52 | 49 | | |
53 | 50 | | |
54 | 51 | | |
| |||
88 | 85 | | |
89 | 86 | | |
90 | 87 | | |
| 88 | + | |
91 | 89 | | |
92 | 90 | | |
93 | 91 | | |
| |||
142 | 140 | | |
143 | 141 | | |
144 | 142 | | |
| 143 | + | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
| |||
0 commit comments