fn create_422() -> Response {
    let mut response = Response::new(Body::from(format!(
        "invalid query: expected single field '{}=<EVENT ID>'\n",
        QUERY_FIELD
    )));
    *response.status_mut() = StatusCode::UNPROCESSABLE_ENTITY;
    response
}
/// Creates a 422 response with a useful error message in the body for use in case of a bad query
/// string.
Creates a 422 response with a useful error message in the body for use in case of a bad query
string.
Creates a 422 response with a useful error message in the body for use in case of a bad query string .
fn create_422() -> Response {
    let mut response = Response::new(Body::from(format!(
        "invalid query: expected single field '{}=<EVENT ID>'\n",
        QUERY_FIELD
    )));
    *response.status_mut() = StatusCode::UNPROCESSABLE_ENTITY;
    response
}
fn create_422 ( ) -> Response { let mut response = Response :: new ( Body :: from ( format ! ( " \n " QUERY_FIELD ) ) ) ; * response . status_mut ( ) = StatusCode :: UNPROCESSABLE_ENTITY ; response }
Creates a 422 response with a useful error message in the body for use in case of a bad query
string.
Creates a 422 response with a useful error message in the body for use in case of a bad query string .