When a query against the Scripted Search API hits the query limit, that should be communicated to the caller.
$ curl -u admin:admin -H 'X-Requested-By: me' -H 'Accept: application/json' 'http://localhost:8080/api/search/messages'
{"type":"ApiError","message":"Scripting API failed to obtain messages for input : MessagesRequestSpec[queryString=*, streams=[], streamCategories=[], timerange=RelativeRange{range=OptionalInt[86400], from=OptionalInt.empty, to=OptionalInt.empty, nowUTC=null}, sort=timestamp, sortOrder=Descending, from=0, size=10, fields=[source, timestamp]]"}
[] This issue fix need to be backported.
[] Does this issue have security implications?
Expected Behavior
When a query against the Scripted Search API hits the query limit, that should be communicated to the caller.
Current Behavior
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment
Checklist
[] This issue fix need to be backported.
[] Does this issue have security implications?