Catch format error for 504 Gateway Time-out.