MCPcopy
hub / github.com/elastic/go-elasticsearch / IsError

Method IsError

esapi/esapi.response.go:93–95  ·  view source on GitHub ↗

IsError returns true when the response status indicates failure.

()

Source from the content-addressed store, hash-verified

91
92// IsError returns true when the response status indicates failure.
93func (r *Response) IsError() bool {
94 return r.StatusCode > 299
95}
96
97// Warnings returns the deprecation warnings from response headers.
98func (r *Response) Warnings() []string {

Callers 15

mainFunction · 0.80
mainFunction · 0.80
CreateIndexMethod · 0.80
CreateMethod · 0.80
SearchMethod · 0.80
HealthFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
setupMethod · 0.80

Calls

no outgoing calls

Tested by 6

ExampleResponse_IsErrorFunction · 0.64
TestAPIResponseFunction · 0.64
TestAPIFunction · 0.64