I have one API it takes sometime to return the data from the Db, meantime I\'m getting 504 error. Is there anyway to add sleep before getting the response? I tried below code, b