The corresponding balanced reaction is:
$H _{2}+ Cl _{2} \rightarrow 2 HCl$
Again, $0.4 \,g H _{2}=0.4 / 2 \,mol =0.2 \,mol$
$7.1 \, g Cl _{2}=7.1 / 71 \,mol =0.1 \,mol$
So, $Cl _{2}$ is the limiting reagent here.
Hence $0.2$ moles of $HCl$ will be formed.
Again, we need to find out the volume of $HCl$ formed in the STP condition.
1 mol of gas in STP occupies $22.7 \, L$
Thus, $0.2$ mol of $HCl$ will occupy $=4.54 \, L$