Skip to content

Commit e69c39a

Browse files
authored
Add missing catch arguments to the rest api spec (elastic#26536)
1 parent 59600df commit e69c39a

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/README.asciidoc

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,17 @@ be caught and tested. For instance:
163163
The argument to `catch` can be any of:
164164
165165
[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
172177
173178
If `catch` is specified, then the `response` var must be cleared, and the test
174179
should fail if no error is thrown.

0 commit comments

Comments
 (0)