try fixing the return codes for elasticsearch