File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
rest-api-spec/src/main/resources/rest-api-spec/test Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -163,12 +163,17 @@ be caught and tested. For instance:
163
163
The argument to `catch` can be any of:
164
164
165
165
[horizontal]
166
- `missing`:: a 404 response from ES
167
- `conflict`:: a 409 response from ES
168
- `request`:: a generic error response from ES
169
- `param`:: a client-side error indicating an unknown parameter has been passed
170
- to the method
171
- `/foo bar/`:: the text of the error message matches this regular expression
166
+ `unauthorized`:: a 401 response from ES
167
+ `forbidden`:: a 403 response from ES
168
+ `missing`:: a 404 response from ES
169
+ `request_timeout`:: a 408 response from ES
170
+ `conflict`:: a 409 response from ES
171
+ `request`:: a 4xx-5xx error response from ES, not equal to any named response
172
+ above
173
+ `unavailable`:: a 503 response from ES
174
+ `param`:: a client-side error indicating an unknown parameter has been passed
175
+ to the method
176
+ `/foo bar/`:: the text of the error message matches this regular expression
172
177
173
178
If `catch` is specified, then the `response` var must be cleared, and the test
174
179
should fail if no error is thrown.
You can’t perform that action at this time.
0 commit comments