use crate::error::Error;

pub const ERR_TOO_MANY_HEADERS: &str = "Too many headers";
pub const ERR_INVALID_HEADER_NAME: &str = "Invalid header name";
pub const ERR_INVALID_HEADER_VALUE: &str = "Invalid header value";
pub const ERR_HEADER_LINE_TOO_LONG: &str = "Header line too long";

pub fn bad_request(msg: &'static str) -> Error {
    Error::BadRequest(msg.into())
}
