Used the sendStatus API Function