Are you seeing 502/504 timeout responses? And are you getting those responses after a large number of requests? It’s not unusual to get the occasional timeout if you’re running a batch job to update a large number (in the several thousands) of records. Usually if you back off on your requests for a second or two and retry the request it will go through.