Let $f\colon X\to \mathbb{P}^3$ be a finite morphism, where $X$ is a smooth and irreducible algebraic variety of dimension three (everything over $\mathbb{C}$).
The ramification locus of $f$ is the closed subset where the differential of $f$ is not an isomorphism, or, in other words:
$$ R_2f = \{ x\in X \,|\, \operatorname{rank} df_x \leq 2 \} $$
Since the map is finite, we know that the ramification locus has codimension at least one, i.e. it is either empty, or a divisor.
What I am interested in are higher ramification loci, and especially:
$$ R_1f = \{ x\in X \,|\, \operatorname{rank} df_x \leq 1 \}$$
Question: Are there any conditions on $f$ which give a lower bound on the codimension of $R_1f$?
For example, we can look at the differential of $X$ as a morphism of vector bundles $df\colon TX \to f^*T{\mathbb{P}^3}$ of rank three on $X$, and then $R_2f$ is the locus where this morphism has rank at most one. In my particular case, I know that this map is symmetric, hence the condition of being of rank at most one is represented by the vanishing of all the $2\times 2$ principal symmetric minors of $df$. Thus, we expect $R_1f$ to have codimension three. Are there any conditions that guarantee that the codimension is exactly three?