Gate_way timeout

Hi,
I am executing some scripts while in post process it was working fine till today morning. Suddenly today it show 504 GATE_WAY timeout error while inserting record for the table which the scripts has written. Please let me know why this error show.
Please help to solve this issue
Thank you,.