The query below resulted in a 500 status code with message {"error":"unknown_error","reason":"no_such_analyzer"}:
curl -u user:pass https://account.cloudant.com/_search_analyze -H "Content-Type: application/json" --data '{
"analyzer": "",
"text": ""
}'
I would suggest updating the status code to 400 bad request.