Skip to content

Commit 4434730

Browse files
authored
[DOCS] Status code change for pipeline validation errors (#78324)
Adds a note to the pipeline aggregation docs for error status codes changed with #53669.
1 parent 4ef3a58 commit 4434730

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/reference/aggregations/pipeline.asciidoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,14 @@ _keep_values_::
272272
This option is similar to skip, except if the metric provides a non-null, non-NaN value this value is
273273
used, otherwise the empty bucket is skipped.
274274

275+
[discrete]
276+
[[pipeline-agg-validation-errors]]
277+
==== Validation errors
278+
279+
An invalid pipeline aggregation returns a `400` HTTP status code and a list of
280+
related validation errors. Prior to 7.7, an invalid pipeline aggregation
281+
returned a `500` status code and the first validation error encountered.
282+
275283
include::pipeline/avg-bucket-aggregation.asciidoc[]
276284

277285
include::pipeline/bucket-script-aggregation.asciidoc[]

0 commit comments

Comments
 (0)