pub fn is_null_body_status(status: u16) -> bool {
matches!(status, 101 | 103 | 204 | 205 | 304)
}
pub fn is_ok_status(status: u16) -> bool {
(200..=299).contains(&status)
}
pub fn is_redirect_status(status: u16) -> bool {
[301, 302, 303, 307, 308].contains(&status)
}
pub fn is_reason_phrase(text: &str) -> bool {
!text.is_empty()
&& text.as_bytes().iter().all(|b| matches!(b,0x21..=0x7E | 0x80..=0xFF | b'\t' | b' '))
}