Adding the api status call