Using a model for the optical spectrum associated with hydrogenated amorphous silicon, explicitly taking into account fundamental experimental limitations encountered, we theoretically determine the dependence of the Tauc and Cody optical gaps associated with hydrogenated amorphous silicon on the thickness of the film. We compare these results with that obtained from experiment. We find that the curvature in the Tauc plot plays a significant role in influencing the determination of the Tauc optical gap associated with hydrogenated amorphous silicon, thus affirming an earlier hypothesis of Cody et al. We also find that the spectral dependence of the refractive index plays an important role in influencing the determination of the Cody optical gap. It is thus clear that care must be exercised when drawing conclusions from the dependence of the Tauc and Cody optical gaps associated with hydrogenated amorphous silicon on the thickness of the film.