We make a classification of three-dimensional hypersurfaces with type number two in H^4 and S^4 using an intrinsic approach. Especially, we study the properties of isometric deformations of such hypersurfaces (rigidity, continuous deformability).