Getting Timeout error (504) while using Request APIs

Just mentioning if you can find any possibilities by Automatically retrying the request with Request Method