fyi - for a continuous duty of 400a, the recommended size is awg 4/0.
your application is an intermittent duty thinner cables are fine but shouldn't be too thin.