fn check_length(len: usize, max: usize, field: &str, unit: &str) -> ResultExpand description
Bound one profile value by its length budget.
MSC4426 mandates both the M_TOO_LARGE errcode and a 400, while the
kind-derived table promotes that errcode to 413, so this is one of the few
call sites naming its own status.