/// A convenient way to return status codes with optional informational bodies.
A convenient way to return status codes with optional informational bodies.
A convenient way to return status codes with optional informational bodies .
pub fn new_status<T>(error: http::StatusCode, message: T) -> Self
    where
        T: ToString,
    {
        Self::StatusCode(error, message.to_string())
    }
pub fn new_status < T > ( error : http :: StatusCode , message : T ) -> Self where T : ToString , { Self :: StatusCode ( error , message . to_string ( ) ) }
A convenient way to return status codes with optional informational bodies.
A convenient way to return status codes with optional informational bodies .
error
http::StatusCode
message
T