pub fn generic_error(error_type: ProtocolErrorType) -> ProtocolErrorExpand description
Creates a generic ProtocolError using the HTTP status code
description (i.e. “Bad Request” or “Not Found”) as the error text.
pub fn generic_error(error_type: ProtocolErrorType) -> ProtocolErrorCreates a generic ProtocolError using the HTTP status code
description (i.e. “Bad Request” or “Not Found”) as the error text.