Closed
Description
See: elastic/kibana#55255
If the token service and api key services are disabled, then usage of those APIs will fail, but the only way to determine that it is caused by ES configuration is to parse the error message.
We would prefer not to have clients that depend on the error message.
From my reading of the spec, I think the 503
response status would be a reasonable fit for this failure case (I'd accept an argument for 501
, but I think 503 is better).