You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/reference/filebeat/filebeat-input-http_endpoint.md
+26-1Lines changed: 26 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ These are the possible response codes from the server.
20
20
| HTTP Response Code | Name | Reason |
21
21
| --- | --- | --- |
22
22
| 200 | OK | Returned on success. |
23
-
| 400 | Bad Request | Returned if JSON body decoding fails or if `wait_for_completion_timeout` query validation fails. |
23
+
| 400 | Bad Request | Returned if JSON body decoding fails, if an OPTIONS request is made and `options_headers` has not been set in the config, or if `wait_for_completion_timeout` query validation fails. |
24
24
| 401 | Unauthorized | Returned when basic auth, secret header, or HMAC validation fails. |
25
25
| 405 | Method Not Allowed | Returned if methods other than POST are used. |
26
26
| 406 | Not Acceptable | Returned if the POST request does not contain a body. |
@@ -285,6 +300,16 @@ The HTTP response code returned upon success. Should be in the 2XX range.
285
300
The response body returned upon success.
286
301
287
302
303
+
### `options_headers`[_options_headers]
304
+
305
+
A set of response headers to add to the response for OPTIONS requests. Headers with the same canonical MIME header name will be replaced with the values in this configuration.
0 commit comments