Elasticsearch debug status

Generally you should return a zero value ("") with an error. Put the message in the error.