vagrancy (n.)
"life of idle begging," 1706, from vagrant + -cy. Earlier in a figurative sense, "mental wandering" (1640s). By late 18c. used in law as a catch-all for miscellaneous petty offenses against public order.