Skip to main content

check_status_length

Function check_status_length 

Source
fn check_status_length(value: &str, max: usize, field: &str) -> Result
Expand description

Bound one status field by its byte 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.