Function generic_error

Source
pub fn generic_error(error_type: ProtocolErrorType) -> ProtocolError
Expand description

Creates a generic ProtocolError using the HTTP status code description (i.e. “Bad Request” or “Not Found”) as the error text.